{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 地理编码\n",
    "* 地理编码/逆地理编码 API 是通过 HTTP/HTTPS 协议访问远程服务的接口，提供结构化地址与经纬度之间的相互转化的能力。\n",
    "* key :\t2042af1de5ec0cfa53a793235a023dcb  \n",
    "[地理/逆地理编码文档](https://lbs.amap.com/api/webservice/guide/api/georegeo)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 该功能的产品应用方案或场景：\n",
    "* 将详细的结构化地址转换为高德经纬度坐标。且支持对地标性名胜景区、建筑物名称解析为高德经纬度坐标。\n",
    "* 例如：结构化地址广东省广州市中山大学南方学院转换后经纬度：113.679287,23.632575\n",
    "* 请求方法：GET\n",
    "* 必要参数：key，address\n",
    "* 可选参数：city，batch，sig，output，callback"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import pandas as pd\n",
    "import requests\n",
    "key_jn =\"2042af1de5ec0cfa53a793235a023dcb\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 65,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'status': '1', 'info': 'OK', 'infocode': '10000', 'count': '1', 'geocodes': [{'formatted_address': '广东省', 'country': '中国', 'province': '广东省', 'city': [], 'district': [], 'township': [], 'neighborhood': {'name': [], 'type': []}, 'building': {'name': [], 'type': []}, 'adcode': '440000', 'street': [], 'number': [], 'location': '113.266530,23.132191', 'level': '省'}]}\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>formatted_address</th>\n",
       "      <th>country</th>\n",
       "      <th>province</th>\n",
       "      <th>city</th>\n",
       "      <th>district</th>\n",
       "      <th>township</th>\n",
       "      <th>adcode</th>\n",
       "      <th>street</th>\n",
       "      <th>number</th>\n",
       "      <th>location</th>\n",
       "      <th>level</th>\n",
       "      <th>neighborhood.name</th>\n",
       "      <th>neighborhood.type</th>\n",
       "      <th>building.name</th>\n",
       "      <th>building.type</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>广东省</td>\n",
       "      <td>中国</td>\n",
       "      <td>广东省</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>440000</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>113.266530,23.132191</td>\n",
       "      <td>省</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  formatted_address country province city district township  adcode street  \\\n",
       "0               广东省      中国      广东省   []       []       []  440000     []   \n",
       "\n",
       "  number              location level neighborhood.name neighborhood.type  \\\n",
       "0     []  113.266530,23.132191     省                []                []   \n",
       "\n",
       "  building.name building.type  \n",
       "0            []            []  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "广东省地理编码: 113.266530,23.132191\n"
     ]
    }
   ],
   "source": [
    "# A-1 地理编码\n",
    "\"\"\"def定义函数名geocode，定义参数\"\"\"\n",
    "def geocode(address,city=None,batch=None,sig=None)->dict:\n",
    "    \"\"\"获取地理编码\"\"\"\n",
    "    url = 'https://restapi.amap.com/v3/geocode/geo?parameters'\n",
    "    params={\n",
    "        'key': key_jn,\n",
    "        'address':address,\n",
    "        'city':city,\n",
    "        'batch':batch,\n",
    "        'sig':sig, \n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data\n",
    "广东省 = geocode(address='广东省')\n",
    "print(广东省)\n",
    "df_广东省地理编码 = pd.json_normalize(广东省['geocodes'])\n",
    "display(df_广东省地理编码)\n",
    "广东省地理编码 = 广东省['geocodes'][0]['location']\n",
    "print(\"广东省地理编码:\",广东省地理编码)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'status': '1', 'info': 'OK', 'infocode': '10000', 'count': '1', 'geocodes': [{'formatted_address': '广东省广州市从化区中山大学南方学院', 'country': '中国', 'province': '广东省', 'citycode': '020', 'city': '广州市', 'district': '从化区', 'township': [], 'neighborhood': {'name': [], 'type': []}, 'building': {'name': [], 'type': []}, 'adcode': '440117', 'street': [], 'number': [], 'location': '113.679287,23.632575', 'level': '兴趣点'}]}\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>formatted_address</th>\n",
       "      <th>country</th>\n",
       "      <th>province</th>\n",
       "      <th>citycode</th>\n",
       "      <th>city</th>\n",
       "      <th>district</th>\n",
       "      <th>township</th>\n",
       "      <th>adcode</th>\n",
       "      <th>street</th>\n",
       "      <th>number</th>\n",
       "      <th>location</th>\n",
       "      <th>level</th>\n",
       "      <th>neighborhood.name</th>\n",
       "      <th>neighborhood.type</th>\n",
       "      <th>building.name</th>\n",
       "      <th>building.type</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>广东省广州市从化区中山大学南方学院</td>\n",
       "      <td>中国</td>\n",
       "      <td>广东省</td>\n",
       "      <td>020</td>\n",
       "      <td>广州市</td>\n",
       "      <td>从化区</td>\n",
       "      <td>[]</td>\n",
       "      <td>440117</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>113.679287,23.632575</td>\n",
       "      <td>兴趣点</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   formatted_address country province citycode city district township  adcode  \\\n",
       "0  广东省广州市从化区中山大学南方学院      中国      广东省      020  广州市      从化区       []  440117   \n",
       "\n",
       "  street number              location level neighborhood.name  \\\n",
       "0     []     []  113.679287,23.632575   兴趣点                []   \n",
       "\n",
       "  neighborhood.type building.name building.type  \n",
       "0                []            []            []  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "中大南方地理编码: 113.679287,23.632575\n"
     ]
    }
   ],
   "source": [
    "# A-1 地理编码\n",
    "def geocode(address,city=None,batch=None,sig=None)->dict:\n",
    "    \"\"\"获取地理编码\"\"\"\n",
    "    url = 'https://restapi.amap.com/v3/geocode/geo?parameters'\n",
    "    params={\n",
    "        'key': key_jn,\n",
    "        'address':address,\n",
    "        'city':city,\n",
    "        'batch':batch,\n",
    "        'sig':sig,       \n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data\n",
    "\n",
    "中大南方 = geocode(address='广东省广州市中山大学南方学院')\n",
    "print(中大南方)\n",
    "df_中大南方地理编码 = pd.json_normalize(中大南方['geocodes'])\n",
    "display(df_中大南方地理编码)\n",
    "中大南方地理编码 = 中大南方['geocodes'][0]['location']\n",
    "print(\"中大南方地理编码:\",中大南方地理编码)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 逆地理编码"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 该功能的产品应用方案或场景：\n",
    "* 将经纬度转换为详细结构化的地址，且返回附近周边的POI、AOI信息。\n",
    "* 例如：113.679287,23.632575转化为结构化地址之后就是“广东省广州市从化区中山大学南方学院”。\n",
    "* 请求方法：GET\n",
    "* 必要参数：key，location\n",
    "* 可选参数：poitype，radius，extensions，batch，roadlevel，sig，output，callback，homeorcorp"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'status': '1', 'regeocode': {'addressComponent': {'city': '广州市', 'province': '广东省', 'adcode': '440117', 'district': '从化区', 'towncode': '440117103000', 'streetNumber': {'number': '7号', 'location': '113.678600,23.633329', 'direction': '西北', 'distance': '109.203', 'street': '博学路'}, 'country': '中国', 'township': '温泉镇', 'businessAreas': [[]], 'building': {'name': [], 'type': []}, 'neighborhood': {'name': [], 'type': []}, 'citycode': '020'}, 'formatted_address': '广东省广州市从化区温泉镇中山大学南方学院'}, 'info': 'OK', 'infocode': '10000'}\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>0</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>status</th>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>info</th>\n",
       "      <td>OK</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>infocode</th>\n",
       "      <td>10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.city</th>\n",
       "      <td>广州市</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.province</th>\n",
       "      <td>广东省</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.adcode</th>\n",
       "      <td>440117</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.district</th>\n",
       "      <td>从化区</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.towncode</th>\n",
       "      <td>440117103000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.streetNumber.number</th>\n",
       "      <td>7号</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.streetNumber.location</th>\n",
       "      <td>113.678600,23.633329</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.streetNumber.direction</th>\n",
       "      <td>西北</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.streetNumber.distance</th>\n",
       "      <td>109.203</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.streetNumber.street</th>\n",
       "      <td>博学路</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.country</th>\n",
       "      <td>中国</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.township</th>\n",
       "      <td>温泉镇</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.businessAreas</th>\n",
       "      <td>[[]]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.building.name</th>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.building.type</th>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.neighborhood.name</th>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.neighborhood.type</th>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.citycode</th>\n",
       "      <td>020</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.formatted_address</th>\n",
       "      <td>广东省广州市从化区温泉镇中山大学南方学院</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                                                      0\n",
       "status                                                                1\n",
       "info                                                                 OK\n",
       "infocode                                                          10000\n",
       "regeocode.addressComponent.city                                     广州市\n",
       "regeocode.addressComponent.province                                 广东省\n",
       "regeocode.addressComponent.adcode                                440117\n",
       "regeocode.addressComponent.district                                 从化区\n",
       "regeocode.addressComponent.towncode                        440117103000\n",
       "regeocode.addressComponent.streetNumber.number                       7号\n",
       "regeocode.addressComponent.streetNumber.location   113.678600,23.633329\n",
       "regeocode.addressComponent.streetNumber.direction                    西北\n",
       "regeocode.addressComponent.streetNumber.distance                109.203\n",
       "regeocode.addressComponent.streetNumber.street                      博学路\n",
       "regeocode.addressComponent.country                                   中国\n",
       "regeocode.addressComponent.township                                 温泉镇\n",
       "regeocode.addressComponent.businessAreas                           [[]]\n",
       "regeocode.addressComponent.building.name                             []\n",
       "regeocode.addressComponent.building.type                             []\n",
       "regeocode.addressComponent.neighborhood.name                         []\n",
       "regeocode.addressComponent.neighborhood.type                         []\n",
       "regeocode.addressComponent.citycode                                 020\n",
       "regeocode.formatted_address                        广东省广州市从化区温泉镇中山大学南方学院"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "# A-2 基础逆地理编码分析\n",
    "def regeocode(location,poitype=None,radius=None,extensions=\"base\",batch=False,roadlevel=None,sig=None,homeorcorp=None)->dict:\n",
    "    \"\"\"获取逆地理编码\"\"\"\n",
    "    url = 'https://restapi.amap.com/v3/geocode/regeo?parameters'\n",
    "    params={\n",
    "        'key': key_jn,\n",
    "        'location':location,\n",
    "        'poitype':poitype,\n",
    "        'radius':radius,\n",
    "        'extensions':extensions,\n",
    "        'batch':batch,\n",
    "        'roadlevel':roadlevel,\n",
    "        'homeorcorp':homeorcorp,\n",
    "        'sig':sig,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data\n",
    "\n",
    "中大南方逆地理编码 = regeocode(中大南方地理编码)\n",
    "print(中大南方逆地理编码)\n",
    "df_中大南方逆地理编码 = pd.json_normalize(中大南方逆地理编码).T\n",
    "display(df_中大南方逆地理编码)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'status': '1', 'regeocode': {'roads': [{'id': '020F49F0050461203', 'location': '113.68,23.634', 'direction': '南', 'name': '博学路', 'distance': '156.951'}], 'roadinters': [], 'formatted_address': '广东省广州市从化区温泉镇中山大学南方学院', 'addressComponent': {'city': '广州市', 'province': '广东省', 'adcode': '440117', 'district': '从化区', 'towncode': '440117103000', 'streetNumber': {'number': '7号', 'location': '113.678600,23.633329', 'direction': '西北', 'distance': '109.203', 'street': '博学路'}, 'country': '中国', 'township': '温泉镇', 'businessAreas': [[]], 'building': {'name': [], 'type': []}, 'neighborhood': {'name': [], 'type': []}, 'citycode': '020'}, 'aois': [{'area': '536585.849985', 'type': '141201', 'id': 'B00140MR9A', 'location': '113.679262,23.632583', 'adcode': '440117', 'name': '中山大学南方学院', 'distance': '0'}], 'pois': [{'id': 'B00140MR9A', 'direction': '西', 'businessarea': [], 'address': '温泉大道882号', 'poiweight': '0.450402', 'name': '中山大学南方学院', 'location': '113.679262,23.632583', 'distance': '2.69979', 'tel': '020-61787331', 'type': '科教文化服务;学校;高等院校'}, {'id': 'B0FFF2VMJ4', 'direction': '东南', 'businessarea': [], 'address': '温泉大道886号中山大学南方学院内', 'poiweight': '0.148531', 'name': '中山大学南方学院-综合楼', 'location': '113.680117,23.631544', 'distance': '142.466', 'tel': [], 'type': '科教文化服务;学校;学校'}, {'id': 'B0FFFTC9PH', 'direction': '东北', 'businessarea': [], 'address': '从莞深高速(中山大学南方学院)', 'poiweight': '0.193172', 'name': '中山大学南方学院教学楼10号', 'location': '113.680125,23.633492', 'distance': '132.988', 'tel': [], 'type': '科教文化服务;科教文化场所;科教文化场所'}, {'id': 'B00141TQKX', 'direction': '西北', 'businessarea': [], 'address': '温泉大道882', 'poiweight': '0.148531', 'name': '中山大学南方学院教学楼6号', 'location': '113.678424,23.633710', 'distance': '153.818', 'tel': [], 'type': '科教文化服务;学校;学校'}, {'id': 'B00141TQGR', 'direction': '西北', 'businessarea': [], 'address': '博学路7', 'poiweight': '0.148531', 'name': '中山大学南方学院教学楼7号', 'location': '113.678600,23.633330', 'distance': '109.298', 'tel': [], 'type': '科教文化服务;学校;高等院校'}, {'id': 'B00141WQCO', 'direction': '东北', 'businessarea': [], 'address': '博学路', 'poiweight': '0.14954', 'name': '中山大学南方学院教学楼8号', 'location': '113.680399,23.634329', 'distance': '225.543', 'tel': [], 'type': '科教文化服务;科教文化场所;科教文化场所'}, {'id': 'B0FFG9IORM', 'direction': '西北', 'businessarea': [], 'address': '温泉大道882号中山大学南方学院内', 'poiweight': '0.287887', 'name': '中山大学南方学院-图书馆', 'location': '113.679177,23.632762', 'distance': '23.6163', 'tel': '020-61787368;020-61787371', 'type': '科教文化服务;图书馆;图书馆'}, {'id': 'B0FFKP9EQJ', 'direction': '东', 'businessarea': [], 'address': '博学路附近', 'poiweight': '0.191742', 'name': '中山大学南方学院4号实验楼', 'location': '113.679963,23.632652', 'distance': '69.4077', 'tel': [], 'type': '科教文化服务;科教文化场所;科教文化场所'}, {'id': 'B0FFJKIA10', 'direction': '东北', 'businessarea': [], 'address': '温泉大道882号中山大学南方学院', 'poiweight': '0.191691', 'name': '中山大学南方学院-第11教学楼', 'location': '113.680037,23.633173', 'distance': '101.294', 'tel': [], 'type': '科教文化服务;科教文化场所;科教文化场所'}, {'id': 'B00141TRVH', 'direction': '西南', 'businessarea': [], 'address': '博学路21', 'poiweight': '0.148531', 'name': '中山大学南方学院教学楼2号', 'location': '113.677060,23.631346', 'distance': '264.846', 'tel': [], 'type': '科教文化服务;科教文化场所;科教文化场所'}, {'id': 'B0FFKERBQZ', 'direction': '西北', 'businessarea': [], 'address': '博学路7号附近', 'poiweight': '0.289141', 'name': '中山大学南方学院惟贤门', 'location': '113.678437,23.633721', 'distance': '154.082', 'tel': [], 'type': '科教文化服务;学校;高等院校'}, {'id': 'B0FFKP81F4', 'direction': '东北', 'businessarea': [], 'address': '中山路', 'poiweight': '0.191742', 'name': '政商研究院教学楼9号', 'location': '113.679949,23.633919', 'distance': '163.951', 'tel': [], 'type': '科教文化服务;科教文化场所;科教文化场所'}, {'id': 'B0FFKP9ET5', 'direction': '西南', 'businessarea': [], 'address': '博学路附近', 'poiweight': '0.191742', 'name': '中山大学南方学院1号实验楼', 'location': '113.678215,23.631370', 'distance': '172.86', 'tel': [], 'type': '科教文化服务;科教文化场所;科教文化场所'}, {'id': 'B00141TR76', 'direction': '西南', 'businessarea': [], 'address': '博学路29', 'poiweight': '0.052819', 'name': '中山大学南方学院教学楼4号', 'location': '113.677460,23.630490', 'distance': '297.315', 'tel': [], 'type': '科教文化服务;科教文化场所;科教文化场所'}, {'id': 'B0FFKP7Q5N', 'direction': '西南', 'businessarea': [], 'address': '博学路', 'poiweight': '0.191742', 'name': '中山大学南方学院2号实验楼', 'location': '113.678211,23.630956', 'distance': '210.76', 'tel': [], 'type': '科教文化服务;科教文化场所;科教文化场所'}, {'id': 'B00140TWHT', 'direction': '南', 'businessarea': [], 'address': '笃行路2号', 'poiweight': '0.157653', 'name': '教工住宅1号', 'location': '113.678490,23.630432', 'distance': '251.758', 'tel': [], 'type': '商务住宅;住宅区;住宅小区'}, {'id': 'B0G3ARGF5Y', 'direction': '西', 'businessarea': [], 'address': [], 'poiweight': '0.286321', 'name': '中山大学南方学院教学楼1号', 'location': '113.677077,23.631783', 'distance': '241.753', 'tel': [], 'type': '科教文化服务;学校;高等院校'}, {'id': 'B0FFLBEOND', 'direction': '东南', 'businessarea': [], 'address': '从莞深高速(中山大学南方学院)', 'poiweight': '0.190963', 'name': '聚贤楼10号', 'location': '113.681253,23.631036', 'distance': '263.444', 'tel': [], 'type': '商务住宅;住宅区;宿舍'}, {'id': 'B0FFKP81F0', 'direction': '西', 'businessarea': [], 'address': '博学路19号附近', 'poiweight': '0.191742', 'name': '教学楼1号(文学与传媒学院)', 'location': '113.676866,23.631736', 'distance': '263.674', 'tel': [], 'type': '科教文化服务;科教文化场所;科教文化场所'}, {'id': 'B0FFKP838K', 'direction': '西南', 'businessarea': [], 'address': '博学路25', 'poiweight': '0.191742', 'name': '教学楼3号(外国语学院)', 'location': '113.677247,23.630947', 'distance': '275.62', 'tel': [], 'type': '科教文化服务;科教文化场所;科教文化场所'}]}, 'info': 'OK', 'infocode': '10000'}\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>status</th>\n",
       "      <th>info</th>\n",
       "      <th>infocode</th>\n",
       "      <th>regeocode.roads</th>\n",
       "      <th>regeocode.roadinters</th>\n",
       "      <th>regeocode.formatted_address</th>\n",
       "      <th>regeocode.addressComponent.city</th>\n",
       "      <th>regeocode.addressComponent.province</th>\n",
       "      <th>regeocode.addressComponent.adcode</th>\n",
       "      <th>regeocode.addressComponent.district</th>\n",
       "      <th>...</th>\n",
       "      <th>regeocode.addressComponent.country</th>\n",
       "      <th>regeocode.addressComponent.township</th>\n",
       "      <th>regeocode.addressComponent.businessAreas</th>\n",
       "      <th>regeocode.addressComponent.building.name</th>\n",
       "      <th>regeocode.addressComponent.building.type</th>\n",
       "      <th>regeocode.addressComponent.neighborhood.name</th>\n",
       "      <th>regeocode.addressComponent.neighborhood.type</th>\n",
       "      <th>regeocode.addressComponent.citycode</th>\n",
       "      <th>regeocode.aois</th>\n",
       "      <th>regeocode.pois</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>OK</td>\n",
       "      <td>10000</td>\n",
       "      <td>[{'id': '020F49F0050461203', 'location': '113....</td>\n",
       "      <td>[]</td>\n",
       "      <td>广东省广州市从化区温泉镇中山大学南方学院</td>\n",
       "      <td>广州市</td>\n",
       "      <td>广东省</td>\n",
       "      <td>440117</td>\n",
       "      <td>从化区</td>\n",
       "      <td>...</td>\n",
       "      <td>中国</td>\n",
       "      <td>温泉镇</td>\n",
       "      <td>[[]]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>020</td>\n",
       "      <td>[{'area': '536585.849985', 'type': '141201', '...</td>\n",
       "      <td>[{'id': 'B00140MR9A', 'direction': '西', 'busin...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>1 rows × 26 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "  status info infocode                                    regeocode.roads  \\\n",
       "0      1   OK    10000  [{'id': '020F49F0050461203', 'location': '113....   \n",
       "\n",
       "  regeocode.roadinters regeocode.formatted_address  \\\n",
       "0                   []        广东省广州市从化区温泉镇中山大学南方学院   \n",
       "\n",
       "  regeocode.addressComponent.city regeocode.addressComponent.province  \\\n",
       "0                             广州市                                 广东省   \n",
       "\n",
       "  regeocode.addressComponent.adcode regeocode.addressComponent.district  ...  \\\n",
       "0                            440117                                 从化区  ...   \n",
       "\n",
       "  regeocode.addressComponent.country regeocode.addressComponent.township  \\\n",
       "0                                 中国                                 温泉镇   \n",
       "\n",
       "  regeocode.addressComponent.businessAreas  \\\n",
       "0                                     [[]]   \n",
       "\n",
       "  regeocode.addressComponent.building.name  \\\n",
       "0                                       []   \n",
       "\n",
       "  regeocode.addressComponent.building.type  \\\n",
       "0                                       []   \n",
       "\n",
       "  regeocode.addressComponent.neighborhood.name  \\\n",
       "0                                           []   \n",
       "\n",
       "  regeocode.addressComponent.neighborhood.type  \\\n",
       "0                                           []   \n",
       "\n",
       "  regeocode.addressComponent.citycode  \\\n",
       "0                                 020   \n",
       "\n",
       "                                      regeocode.aois  \\\n",
       "0  [{'area': '536585.849985', 'type': '141201', '...   \n",
       "\n",
       "                                      regeocode.pois  \n",
       "0  [{'id': 'B00140MR9A', 'direction': '西', 'busin...  \n",
       "\n",
       "[1 rows x 26 columns]"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "# A-2 Extra 全部逆地理编码分析\n",
    "中大南方逆地理编码_all = regeocode(中大南方地理编码,extensions='all',radius=300)\n",
    "print(中大南方逆地理编码_all)\n",
    "df_中大南方逆地理编码_all = pd.json_normalize(中大南方逆地理编码_all)\n",
    "display(df_中大南方逆地理编码_all)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>location</th>\n",
       "      <th>direction</th>\n",
       "      <th>name</th>\n",
       "      <th>distance</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>020F49F0050461203</td>\n",
       "      <td>113.68,23.634</td>\n",
       "      <td>南</td>\n",
       "      <td>博学路</td>\n",
       "      <td>156.951</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                  id       location direction name distance\n",
       "0  020F49F0050461203  113.68,23.634         南  博学路  156.951"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "Empty DataFrame\n",
       "Columns: []\n",
       "Index: []"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>area</th>\n",
       "      <th>type</th>\n",
       "      <th>id</th>\n",
       "      <th>location</th>\n",
       "      <th>adcode</th>\n",
       "      <th>name</th>\n",
       "      <th>distance</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>536585.849985</td>\n",
       "      <td>141201</td>\n",
       "      <td>B00140MR9A</td>\n",
       "      <td>113.679262,23.632583</td>\n",
       "      <td>440117</td>\n",
       "      <td>中山大学南方学院</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "            area    type          id              location  adcode      name  \\\n",
       "0  536585.849985  141201  B00140MR9A  113.679262,23.632583  440117  中山大学南方学院   \n",
       "\n",
       "  distance  \n",
       "0        0  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>direction</th>\n",
       "      <th>businessarea</th>\n",
       "      <th>address</th>\n",
       "      <th>poiweight</th>\n",
       "      <th>name</th>\n",
       "      <th>location</th>\n",
       "      <th>distance</th>\n",
       "      <th>tel</th>\n",
       "      <th>type</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>B00140MR9A</td>\n",
       "      <td>西</td>\n",
       "      <td>[]</td>\n",
       "      <td>温泉大道882号</td>\n",
       "      <td>0.450402</td>\n",
       "      <td>中山大学南方学院</td>\n",
       "      <td>113.679262,23.632583</td>\n",
       "      <td>2.69979</td>\n",
       "      <td>020-61787331</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>B0FFF2VMJ4</td>\n",
       "      <td>东南</td>\n",
       "      <td>[]</td>\n",
       "      <td>温泉大道886号中山大学南方学院内</td>\n",
       "      <td>0.148531</td>\n",
       "      <td>中山大学南方学院-综合楼</td>\n",
       "      <td>113.680117,23.631544</td>\n",
       "      <td>142.466</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;学校</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>B0FFFTC9PH</td>\n",
       "      <td>东北</td>\n",
       "      <td>[]</td>\n",
       "      <td>从莞深高速(中山大学南方学院)</td>\n",
       "      <td>0.193172</td>\n",
       "      <td>中山大学南方学院教学楼10号</td>\n",
       "      <td>113.680125,23.633492</td>\n",
       "      <td>132.988</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>B00141TQKX</td>\n",
       "      <td>西北</td>\n",
       "      <td>[]</td>\n",
       "      <td>温泉大道882</td>\n",
       "      <td>0.148531</td>\n",
       "      <td>中山大学南方学院教学楼6号</td>\n",
       "      <td>113.678424,23.633710</td>\n",
       "      <td>153.818</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;学校</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>B00141TQGR</td>\n",
       "      <td>西北</td>\n",
       "      <td>[]</td>\n",
       "      <td>博学路7</td>\n",
       "      <td>0.148531</td>\n",
       "      <td>中山大学南方学院教学楼7号</td>\n",
       "      <td>113.678600,23.633330</td>\n",
       "      <td>109.298</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>B00141WQCO</td>\n",
       "      <td>东北</td>\n",
       "      <td>[]</td>\n",
       "      <td>博学路</td>\n",
       "      <td>0.14954</td>\n",
       "      <td>中山大学南方学院教学楼8号</td>\n",
       "      <td>113.680399,23.634329</td>\n",
       "      <td>225.543</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>B0FFG9IORM</td>\n",
       "      <td>西北</td>\n",
       "      <td>[]</td>\n",
       "      <td>温泉大道882号中山大学南方学院内</td>\n",
       "      <td>0.287887</td>\n",
       "      <td>中山大学南方学院-图书馆</td>\n",
       "      <td>113.679177,23.632762</td>\n",
       "      <td>23.6163</td>\n",
       "      <td>020-61787368;020-61787371</td>\n",
       "      <td>科教文化服务;图书馆;图书馆</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>B0FFKP9EQJ</td>\n",
       "      <td>东</td>\n",
       "      <td>[]</td>\n",
       "      <td>博学路附近</td>\n",
       "      <td>0.191742</td>\n",
       "      <td>中山大学南方学院4号实验楼</td>\n",
       "      <td>113.679963,23.632652</td>\n",
       "      <td>69.4077</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>B0FFJKIA10</td>\n",
       "      <td>东北</td>\n",
       "      <td>[]</td>\n",
       "      <td>温泉大道882号中山大学南方学院</td>\n",
       "      <td>0.191691</td>\n",
       "      <td>中山大学南方学院-第11教学楼</td>\n",
       "      <td>113.680037,23.633173</td>\n",
       "      <td>101.294</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>B00141TRVH</td>\n",
       "      <td>西南</td>\n",
       "      <td>[]</td>\n",
       "      <td>博学路21</td>\n",
       "      <td>0.148531</td>\n",
       "      <td>中山大学南方学院教学楼2号</td>\n",
       "      <td>113.677060,23.631346</td>\n",
       "      <td>264.846</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>B0FFKERBQZ</td>\n",
       "      <td>西北</td>\n",
       "      <td>[]</td>\n",
       "      <td>博学路7号附近</td>\n",
       "      <td>0.289141</td>\n",
       "      <td>中山大学南方学院惟贤门</td>\n",
       "      <td>113.678437,23.633721</td>\n",
       "      <td>154.082</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>B0FFKP81F4</td>\n",
       "      <td>东北</td>\n",
       "      <td>[]</td>\n",
       "      <td>中山路</td>\n",
       "      <td>0.191742</td>\n",
       "      <td>政商研究院教学楼9号</td>\n",
       "      <td>113.679949,23.633919</td>\n",
       "      <td>163.951</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>B0FFKP9ET5</td>\n",
       "      <td>西南</td>\n",
       "      <td>[]</td>\n",
       "      <td>博学路附近</td>\n",
       "      <td>0.191742</td>\n",
       "      <td>中山大学南方学院1号实验楼</td>\n",
       "      <td>113.678215,23.631370</td>\n",
       "      <td>172.86</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>B00141TR76</td>\n",
       "      <td>西南</td>\n",
       "      <td>[]</td>\n",
       "      <td>博学路29</td>\n",
       "      <td>0.052819</td>\n",
       "      <td>中山大学南方学院教学楼4号</td>\n",
       "      <td>113.677460,23.630490</td>\n",
       "      <td>297.315</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>B0FFKP7Q5N</td>\n",
       "      <td>西南</td>\n",
       "      <td>[]</td>\n",
       "      <td>博学路</td>\n",
       "      <td>0.191742</td>\n",
       "      <td>中山大学南方学院2号实验楼</td>\n",
       "      <td>113.678211,23.630956</td>\n",
       "      <td>210.76</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>B00140TWHT</td>\n",
       "      <td>南</td>\n",
       "      <td>[]</td>\n",
       "      <td>笃行路2号</td>\n",
       "      <td>0.157653</td>\n",
       "      <td>教工住宅1号</td>\n",
       "      <td>113.678490,23.630432</td>\n",
       "      <td>251.758</td>\n",
       "      <td>[]</td>\n",
       "      <td>商务住宅;住宅区;住宅小区</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>B0G3ARGF5Y</td>\n",
       "      <td>西</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0.286321</td>\n",
       "      <td>中山大学南方学院教学楼1号</td>\n",
       "      <td>113.677077,23.631783</td>\n",
       "      <td>241.753</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>B0FFLBEOND</td>\n",
       "      <td>东南</td>\n",
       "      <td>[]</td>\n",
       "      <td>从莞深高速(中山大学南方学院)</td>\n",
       "      <td>0.190963</td>\n",
       "      <td>聚贤楼10号</td>\n",
       "      <td>113.681253,23.631036</td>\n",
       "      <td>263.444</td>\n",
       "      <td>[]</td>\n",
       "      <td>商务住宅;住宅区;宿舍</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>B0FFKP81F0</td>\n",
       "      <td>西</td>\n",
       "      <td>[]</td>\n",
       "      <td>博学路19号附近</td>\n",
       "      <td>0.191742</td>\n",
       "      <td>教学楼1号(文学与传媒学院)</td>\n",
       "      <td>113.676866,23.631736</td>\n",
       "      <td>263.674</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>B0FFKP838K</td>\n",
       "      <td>西南</td>\n",
       "      <td>[]</td>\n",
       "      <td>博学路25</td>\n",
       "      <td>0.191742</td>\n",
       "      <td>教学楼3号(外国语学院)</td>\n",
       "      <td>113.677247,23.630947</td>\n",
       "      <td>275.62</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "            id direction businessarea            address poiweight  \\\n",
       "0   B00140MR9A         西           []           温泉大道882号  0.450402   \n",
       "1   B0FFF2VMJ4        东南           []  温泉大道886号中山大学南方学院内  0.148531   \n",
       "2   B0FFFTC9PH        东北           []    从莞深高速(中山大学南方学院)  0.193172   \n",
       "3   B00141TQKX        西北           []            温泉大道882  0.148531   \n",
       "4   B00141TQGR        西北           []               博学路7  0.148531   \n",
       "5   B00141WQCO        东北           []                博学路   0.14954   \n",
       "6   B0FFG9IORM        西北           []  温泉大道882号中山大学南方学院内  0.287887   \n",
       "7   B0FFKP9EQJ         东           []              博学路附近  0.191742   \n",
       "8   B0FFJKIA10        东北           []   温泉大道882号中山大学南方学院  0.191691   \n",
       "9   B00141TRVH        西南           []              博学路21  0.148531   \n",
       "10  B0FFKERBQZ        西北           []            博学路7号附近  0.289141   \n",
       "11  B0FFKP81F4        东北           []                中山路  0.191742   \n",
       "12  B0FFKP9ET5        西南           []              博学路附近  0.191742   \n",
       "13  B00141TR76        西南           []              博学路29  0.052819   \n",
       "14  B0FFKP7Q5N        西南           []                博学路  0.191742   \n",
       "15  B00140TWHT         南           []              笃行路2号  0.157653   \n",
       "16  B0G3ARGF5Y         西           []                 []  0.286321   \n",
       "17  B0FFLBEOND        东南           []    从莞深高速(中山大学南方学院)  0.190963   \n",
       "18  B0FFKP81F0         西           []           博学路19号附近  0.191742   \n",
       "19  B0FFKP838K        西南           []              博学路25  0.191742   \n",
       "\n",
       "               name              location distance                        tel  \\\n",
       "0          中山大学南方学院  113.679262,23.632583  2.69979               020-61787331   \n",
       "1      中山大学南方学院-综合楼  113.680117,23.631544  142.466                         []   \n",
       "2    中山大学南方学院教学楼10号  113.680125,23.633492  132.988                         []   \n",
       "3     中山大学南方学院教学楼6号  113.678424,23.633710  153.818                         []   \n",
       "4     中山大学南方学院教学楼7号  113.678600,23.633330  109.298                         []   \n",
       "5     中山大学南方学院教学楼8号  113.680399,23.634329  225.543                         []   \n",
       "6      中山大学南方学院-图书馆  113.679177,23.632762  23.6163  020-61787368;020-61787371   \n",
       "7     中山大学南方学院4号实验楼  113.679963,23.632652  69.4077                         []   \n",
       "8   中山大学南方学院-第11教学楼  113.680037,23.633173  101.294                         []   \n",
       "9     中山大学南方学院教学楼2号  113.677060,23.631346  264.846                         []   \n",
       "10      中山大学南方学院惟贤门  113.678437,23.633721  154.082                         []   \n",
       "11       政商研究院教学楼9号  113.679949,23.633919  163.951                         []   \n",
       "12    中山大学南方学院1号实验楼  113.678215,23.631370   172.86                         []   \n",
       "13    中山大学南方学院教学楼4号  113.677460,23.630490  297.315                         []   \n",
       "14    中山大学南方学院2号实验楼  113.678211,23.630956   210.76                         []   \n",
       "15           教工住宅1号  113.678490,23.630432  251.758                         []   \n",
       "16    中山大学南方学院教学楼1号  113.677077,23.631783  241.753                         []   \n",
       "17           聚贤楼10号  113.681253,23.631036  263.444                         []   \n",
       "18   教学楼1号(文学与传媒学院)  113.676866,23.631736  263.674                         []   \n",
       "19     教学楼3号(外国语学院)  113.677247,23.630947   275.62                         []   \n",
       "\n",
       "                    type  \n",
       "0         科教文化服务;学校;高等院校  \n",
       "1           科教文化服务;学校;学校  \n",
       "2   科教文化服务;科教文化场所;科教文化场所  \n",
       "3           科教文化服务;学校;学校  \n",
       "4         科教文化服务;学校;高等院校  \n",
       "5   科教文化服务;科教文化场所;科教文化场所  \n",
       "6         科教文化服务;图书馆;图书馆  \n",
       "7   科教文化服务;科教文化场所;科教文化场所  \n",
       "8   科教文化服务;科教文化场所;科教文化场所  \n",
       "9   科教文化服务;科教文化场所;科教文化场所  \n",
       "10        科教文化服务;学校;高等院校  \n",
       "11  科教文化服务;科教文化场所;科教文化场所  \n",
       "12  科教文化服务;科教文化场所;科教文化场所  \n",
       "13  科教文化服务;科教文化场所;科教文化场所  \n",
       "14  科教文化服务;科教文化场所;科教文化场所  \n",
       "15         商务住宅;住宅区;住宅小区  \n",
       "16        科教文化服务;学校;高等院校  \n",
       "17           商务住宅;住宅区;宿舍  \n",
       "18  科教文化服务;科教文化场所;科教文化场所  \n",
       "19  科教文化服务;科教文化场所;科教文化场所  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "# A-3 分析细节\n",
    "roads = pd.json_normalize(中大南方逆地理编码_all['regeocode']['roads'])\n",
    "roadinters = pd.json_normalize(中大南方逆地理编码_all['regeocode']['roadinters'])\n",
    "aois = pd.json_normalize(中大南方逆地理编码_all['regeocode']['aois'])\n",
    "pois = pd.json_normalize(中大南方逆地理编码_all['regeocode']['pois'])\n",
    "display(roads,roadinters,aois,pois)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 路径规划  \n",
    "### 步行  \n",
    "[路径规划文档](https://lbs.amap.com/api/webservice/guide/api/direction)\n",
    "#### 该功能的产品应用方案或场景：\n",
    "* 无需展现地图的场景下，进行线路查询，如以线路结果页形式展现换乘方案；\n",
    "* 根据返回线路数据，自行开发线路导航。\n",
    "* 例如：为你定制一条从中大南方到从化客运站的步行路线，如果走路太累，那就换成公车吧！\n",
    "* 必要参数：key，origin，destination\n",
    "* 可选参数：sig，output，callback"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### B-1 准备base url、params、response.json（） "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 59,
   "metadata": {},
   "outputs": [],
   "source": [
    "# B-1 准备base url、params、response.json（） \n",
    "def walking(origin,destination,sig=None)->dict:\n",
    "    \"\"\"准备base url、params、response.json（）\"\"\"\n",
    "    url = 'https://restapi.amap.com/v3/direction/walking?parameters'\n",
    "    params={\n",
    "        'key':key_jn,\n",
    "        'origin':origin,\n",
    "        'destination':destination,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### B-2 准备walking 参数"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 60,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "(起点)中大南方_location: 113.679287,23.632575 (终点)从化客运站_location: 113.588823,23.547738\n"
     ]
    }
   ],
   "source": [
    "# B-2 准备walking 参数\n",
    "从化客运站 = geocode('广东省广州市从化区从化客运站')\n",
    "从化客运站_location = 从化客运站['geocodes'][0]['location']\n",
    "中大南方_location = 中大南方['geocodes'][0]['location']\n",
    "print(\"(起点)中大南方_location:\",中大南方_location,\"(终点)从化客运站_location:\",从化客运站_location)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### B-3 实现步行路径规划"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 61,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'status': '1', 'info': 'ok', 'infocode': '10000', 'count': '1', 'route': {'origin': '113.679287,23.632575', 'destination': '113.588823,23.547738', 'paths': [{'distance': '16427', 'duration': '13142', 'steps': [{'instruction': '向东步行101米右转', 'orientation': '东', 'road': [], 'distance': '101', 'duration': '81', 'polyline': '113.679592,23.632491;113.680586,23.632522', 'action': '右转', 'assistant_action': [], 'walk_type': '0'}, {'instruction': '向南步行199米向右前方行走', 'orientation': '南', 'road': [], 'distance': '199', 'duration': '159', 'polyline': '113.680586,23.632522;113.680638,23.63214;113.680668,23.63174;113.680634,23.631541;113.68059,23.631437;113.68059,23.631437;113.680499,23.631241;113.680408,23.631094;113.680208,23.630842', 'action': '向右前方行走', 'assistant_action': [], 'walk_type': '0'}, {'instruction': '向西步行159米左转', 'orientation': '西', 'road': [], 'distance': '159', 'duration': '127', 'polyline': '113.680204,23.630838;113.680035,23.630773;113.680035,23.630773;113.679644,23.630638;113.679644,23.630638;113.679362,23.630521;113.679201,23.630473;113.679201,23.630473;113.679032,23.63043;113.679032,23.63043;113.67888,23.630404;113.67888,23.630404;113.678711,23.630365', 'action': '左转', 'assistant_action': [], 'walk_type': '0'}, {'instruction': '向南步行237米左转', 'orientation': '南', 'road': [], 'distance': '237', 'duration': '190', 'polyline': '113.678711,23.63036;113.678711,23.62934;113.678711,23.62934;113.678711,23.629193;113.678689,23.629084;113.678637,23.629023;113.678424,23.628902;113.678368,23.628841;113.678316,23.628724;113.678294,23.628611;113.678294,23.628611;113.678277,23.628372', 'action': '左转', 'assistant_action': [], 'walk_type': '0'}, {'instruction': '向南步行498米向右前方行走', 'orientation': '南', 'road': [], 'distance': '498', 'duration': '398', 'polyline': '113.678273,23.628368;113.678572,23.628338;113.678685,23.628307;113.678685,23.628307;113.678845,23.628234;113.679045,23.628073;113.679158,23.627964;113.679158,23.627964;113.679214,23.627869;113.679236,23.627778;113.67928,23.627526;113.679288,23.627322;113.679288,23.627322;113.679253,23.626853;113.679184,23.626623;113.679141,23.626497;113.679002,23.626259;113.678941,23.626176;113.678711,23.625977;113.67862,23.625864;113.678529,23.62572;113.678438,23.625191;113.678429,23.625056;113.678451,23.624939;113.678572,23.624657', 'action': '向右前方行走', 'assistant_action': [], 'walk_type': '0'}, {'instruction': '向西南步行722米左转', 'orientation': '西南', 'road': [], 'distance': '722', 'duration': '578', 'polyline': '113.678572,23.624653;113.678559,23.62451;113.678416,23.624323;113.678416,23.624323;113.677582,23.623793;113.676532,23.623346;113.676363,23.623255;113.676272,23.623151;113.676111,23.622834;113.676042,23.622739;113.67579,23.622483;113.675499,23.622279;113.675417,23.622174;113.675386,23.622088;113.675378,23.621836;113.675378,23.621836;113.675391,23.62161;113.675434,23.621476;113.675543,23.621359;113.675764,23.621181;113.675846,23.621089;113.675903,23.620994;113.675907,23.620855;113.675877,23.620725;113.675747,23.620547;113.675599,23.620373;113.675243,23.620013', 'action': '左转', 'assistant_action': [], 'walk_type': '0'}, {'instruction': '向东南步行412米向右前方行走', 'orientation': '东南', 'road': [], 'distance': '412', 'duration': '330', 'polyline': '113.675239,23.620009;113.67549,23.620013;113.675642,23.619991;113.675773,23.619948;113.676016,23.619796;113.676901,23.619193;113.677261,23.618785;113.678069,23.61783;113.678069,23.61783;113.678181,23.617656', 'action': '向右前方行走', 'assistant_action': [], 'walk_type': '0'}, {'instruction': '沿乌土街向南步行1381米右转', 'orientation': '南', 'road': '乌土街', 'distance': '1381', 'duration': '1105', 'polyline': '113.678181,23.617652;113.678095,23.617205;113.678051,23.617075;113.677973,23.616923;113.677743,23.616558;113.677609,23.616289;113.677391,23.615816;113.677339,23.615668;113.67714,23.614826;113.677049,23.614323;113.676927,23.613359;113.676845,23.612786;113.676602,23.611489;113.676415,23.610438;113.676411,23.610265;113.676411,23.610265;113.676489,23.609848;113.676502,23.609622;113.676493,23.609236;113.676415,23.608746;113.676415,23.608485;113.67648,23.60819;113.67661,23.607734;113.676819,23.606736;113.676862,23.606541;113.676914,23.606415;113.677014,23.606254;113.677535,23.605673', 'action': '右转', 'assistant_action': [], 'walk_type': '0'}, {'instruction': '沿乌土街向西南步行165米直行', 'orientation': '西南', 'road': '乌土街', 'distance': '165', 'duration': '132', 'polyline': '113.677535,23.605668;113.676988,23.605373;113.676402,23.605;113.676163,23.604887', 'action': '直行', 'assistant_action': [], 'walk_type': '0'}, {'instruction': '沿934县道向西步行118米直行', 'orientation': '西', 'road': '934县道', 'distance': '118', 'duration': '94', 'polyline': '113.676159,23.604883;113.675799,23.604805;113.675508,23.604779;113.675508,23.604779;113.675013,23.60474', 'action': '直行', 'assistant_action': [], 'walk_type': '0'}, {'instruction': '沿桃园东路向西南步行674米向右前方行走', 'orientation': '西南', 'road': '桃园东路', 'distance': '674', 'duration': '539', 'polyline': '113.675009,23.604735;113.674236,23.604683;113.673893,23.604618;113.673464,23.604492;113.673464,23.604492;113.67168,23.604006;113.671541,23.603958;113.671411,23.603854;113.671068,23.603472;113.670807,23.603264;113.670807,23.603264;113.670525,23.603073;113.6702,23.602904;113.6702,23.602904;113.670022,23.602795;113.670022,23.602795;113.669909,23.602682;113.669818,23.602517;113.669787,23.602413;113.669718,23.601901', 'action': '向右前方行走', 'assistant_action': [], 'walk_type': '0'}, {'instruction': '沿桃园东路向西南步行247米直行', 'orientation': '西南', 'road': '桃园东路', 'distance': '247', 'duration': '198', 'polyline': '113.669714,23.601897;113.66964,23.601771;113.66964,23.601771;113.669488,23.601558;113.669488,23.601558;113.668789,23.600859;113.668663,23.600768;113.668663,23.600768;113.668442,23.600647;113.667947,23.600417', 'action': '直行', 'assistant_action': [], 'walk_type': '0'}, {'instruction': '沿桃园西路向西南步行2775米向右前方行走', 'orientation': '西南', 'road': '桃园西路', 'distance': '2775', 'duration': '2220', 'polyline': '113.667943,23.600412;113.667331,23.600139;113.667331,23.600139;113.666224,23.599644;113.665955,23.599505;113.665955,23.599505;113.665781,23.599362;113.665781,23.599362;113.665521,23.599093;113.665521,23.599093;113.665286,23.598824;113.665286,23.598824;113.665256,23.598785;113.665256,23.598785;113.664796,23.598238;113.664796,23.598238;113.664401,23.597622;113.664401,23.597622;113.664071,23.59714;113.663746,23.59678;113.663746,23.59678;113.663477,23.59651;113.663477,23.59651;113.66224,23.595434;113.66224,23.595434;113.661563,23.594848;113.661563,23.594848;113.661311,23.594605;113.66115,23.594414;113.660907,23.594032;113.660907,23.594032;113.660829,23.593889;113.660729,23.593598;113.660547,23.593025;113.660464,23.592804;113.660464,23.592804;113.659931,23.591593;113.659831,23.591393;113.659631,23.59105;113.659631,23.59105;113.659115,23.59023;113.658824,23.589592;113.658824,23.589592;113.658754,23.589405;113.658754,23.589405;113.657817,23.58714;113.657747,23.586936;113.657695,23.586693;113.657548,23.585369;113.657548,23.585369;113.657483,23.585161;113.657326,23.584896;113.657326,23.584896;113.657114,23.58457;113.657062,23.584453;113.65691,23.583924;113.656884,23.583785;113.656879,23.583681;113.656888,23.583572;113.656979,23.58326;113.657066,23.58303;113.657157,23.582852;113.657378,23.582539;113.657431,23.582444;113.65747,23.582344;113.657483,23.582235;113.657483,23.582109;113.657435,23.580777;113.657405,23.580616;113.657405,23.580616;113.657296,23.580308;113.657244,23.580221;113.656723,23.579644;113.656723,23.579644;113.656597,23.579488;113.656411,23.579362', 'action': '向右前方行走', 'assistant_action': [], 'walk_type': '0'}, {'instruction': '沿石海工业大道向西南步行1838米直行', 'orientation': '西南', 'road': '石海工业大道', 'distance': '1838', 'duration': '1470', 'polyline': '113.656406,23.579358;113.656055,23.57931;113.656055,23.57931;113.655091,23.579089;113.654918,23.579023;113.654566,23.57885;113.654566,23.57885;113.653681,23.578372;113.653681,23.578372;113.653429,23.578247;113.653429,23.578247;113.652713,23.577865;113.652713,23.577865;113.652452,23.577704;113.652001,23.577387;113.652001,23.577387;113.651654,23.577105;113.651654,23.577105;113.651437,23.57694;113.651437,23.57694;113.650681,23.576332;113.650681,23.576332;113.650378,23.576094;113.650378,23.576094;113.649674,23.575534;113.649674,23.575534;113.649583,23.575451;113.649583,23.575451;113.64924,23.575182;113.64924,23.575182;113.647409,23.573754;113.647409,23.573754;113.647279,23.573641;113.646793,23.573155;113.646793,23.573155;113.64661,23.57296;113.64661,23.57296;113.646419,23.572778;113.646419,23.572778;113.646202,23.572565;113.645968,23.57237;113.645252,23.571866;113.645252,23.571866;113.644974,23.571732;113.644974,23.571732;113.644883,23.571706;113.644618,23.571671;113.643967,23.571675;113.643967,23.571675;113.643511,23.57168;113.643511,23.57168;113.64329,23.57168;113.643047,23.571654;113.64293,23.571632;113.642548,23.571502;113.642326,23.571411;113.641979,23.571228;113.641636,23.571003;113.641636,23.571003;113.641437,23.57082', 'action': '直行', 'assistant_action': [], 'walk_type': '0'}, {'instruction': '沿政通路向西南步行2161米直行', 'orientation': '西南', 'road': '政通路', 'distance': '2161', 'duration': '1729', 'polyline': '113.641432,23.570816;113.641168,23.570525;113.641168,23.570525;113.640964,23.570265;113.640864,23.570156;113.640864,23.570156;113.640651,23.569978;113.640408,23.569822;113.638902,23.569006;113.638902,23.569006;113.638398,23.568746;113.638056,23.568611;113.637695,23.568529;113.637431,23.568507;113.637209,23.568516;113.637209,23.568516;113.636836,23.568576;113.636836,23.568576;113.636484,23.568676;113.636484,23.568676;113.635334,23.569058;113.633754,23.569614;113.633485,23.569674;113.633251,23.569692;113.633251,23.569692;113.633069,23.569688;113.633069,23.569688;113.632778,23.569635;113.632378,23.569492;113.631992,23.569319;113.631853,23.569223;113.631801,23.569158;113.631701,23.568997;113.631441,23.568338;113.631441,23.568338;113.63128,23.567947;113.63128,23.567947;113.63122,23.567834;113.631089,23.567656;113.630946,23.567526;113.630768,23.567387;113.630768,23.567387;113.630456,23.567157;113.630456,23.567157;113.630113,23.566884;113.630113,23.566884;113.629596,23.566458;113.629063,23.565799;113.628359,23.565174;113.62826,23.565026;113.62806,23.564592;113.627665,23.56395;113.627574,23.563815;113.627413,23.56365;113.626576,23.563003;113.626254,23.562804;113.625964,23.562682;113.624987,23.562365', 'action': '直行', 'assistant_action': [], 'walk_type': '0'}, {'instruction': '沿灌村路向西步行781米左转', 'orientation': '西', 'road': '灌村路', 'distance': '781', 'duration': '625', 'polyline': '113.624983,23.562361;113.624431,23.562183;113.62349,23.56191;113.623216,23.561771;113.623003,23.561593;113.622661,23.561185;113.622049,23.560525;113.621936,23.560421;113.621775,23.560317;113.621515,23.560226;113.620226,23.559926;113.619579,23.559761;113.619427,23.559744;113.619427,23.559744;113.619188,23.559731;113.619188,23.559731;113.618555,23.559796;113.618355,23.559839;113.618251,23.559887', 'action': '左转', 'assistant_action': [], 'walk_type': '0'}, {'instruction': '沿环市东路向西南步行1582米向右前方行走', 'orientation': '西南', 'road': '环市东路', 'distance': '1582', 'duration': '1266', 'polyline': '113.618247,23.559887;113.617626,23.559271;113.617626,23.559271;113.615794,23.557474;113.615794,23.557474;113.615213,23.556905;113.615213,23.556905;113.614818,23.556515;113.614818,23.556515;113.614093,23.55579;113.614093,23.55579;113.613832,23.55549;113.613832,23.55549;113.613628,23.555217;113.613628,23.555217;113.613429,23.554926;113.613429,23.554926;113.613138,23.554418;113.612778,23.553516;113.612778,23.553516;113.612756,23.553442;113.612756,23.553442;113.612682,23.553251;113.612682,23.553251;113.612656,23.553181;113.612656,23.553181;113.612344,23.552339;113.612344,23.552339;113.612192,23.551949;113.612192,23.551949;113.61207,23.551658;113.611888,23.551354;113.611606,23.550968;113.611476,23.550812;113.611246,23.550577;113.610551,23.55;113.610551,23.55;113.610065,23.549609;113.610065,23.549609;113.609514,23.549162;113.609514,23.549162;113.609071,23.548746;113.609071,23.548746;113.608971,23.548641', 'action': '向右前方行走', 'assistant_action': [], 'walk_type': '0'}, {'instruction': '沿河东北路向西步行1383米向左前方行走', 'orientation': '西', 'road': '河东北路', 'distance': '1383', 'duration': '1106', 'polyline': '113.608967,23.548637;113.608767,23.548576;113.608767,23.548576;113.608589,23.548503;113.607548,23.547921;113.607548,23.547921;113.606918,23.54763;113.606918,23.54763;113.606875,23.547613;113.606875,23.547613;113.60648,23.547439;113.60648,23.547439;113.60477,23.546671;113.60477,23.546671;113.604701,23.546641;113.604701,23.546641;113.60424,23.546471;113.603954,23.54638;113.603555,23.546289;113.603555,23.546289;113.603108,23.546233;113.603108,23.546233;113.602839,23.546207;113.602839,23.546207;113.602296,23.546194;113.602075,23.546198;113.602075,23.546198;113.601628,23.546228;113.601628,23.546228;113.600985,23.546259;113.600985,23.546259;113.600321,23.54628;113.600321,23.54628;113.600304,23.54628;113.600304,23.54628;113.599618,23.546306;113.599076,23.546306;113.599076,23.546306;113.598498,23.54628;113.598498,23.54628;113.597439,23.546233;113.597439,23.546233;113.596806,23.546155;113.596806,23.546155;113.596276,23.546085;113.596276,23.546085;113.595964,23.546029', 'action': '向左前方行走', 'assistant_action': [], 'walk_type': '0'}, {'instruction': '沿河东北路向西南步行60米向左前方行走', 'orientation': '西南', 'road': '河东北路', 'distance': '60', 'duration': '48', 'polyline': '113.595959,23.546024;113.595803,23.545964;113.59572,23.545907;113.595642,23.545842;113.595547,23.545673', 'action': '向左前方行走', 'assistant_action': [], 'walk_type': '0'}, {'instruction': '沿河东北路向南步行129米右转', 'orientation': '南', 'road': '河东北路', 'distance': '129', 'duration': '103', 'polyline': '113.595543,23.545668;113.595486,23.545386;113.595486,23.545386;113.595486,23.545308;113.595525,23.545135;113.595525,23.545135;113.595764,23.54454', 'action': '右转', 'assistant_action': [], 'walk_type': '0'}, {'instruction': '沿355省道向西步行407米直行', 'orientation': '西', 'road': '355省道', 'distance': '407', 'duration': '326', 'polyline': '113.595764,23.544536;113.595681,23.544536;113.595681,23.544536;113.595547,23.544536;113.595547,23.544536;113.595269,23.544536;113.595269,23.544536;113.594957,23.544588;113.594631,23.544674;113.594631,23.544674;113.594575,23.544692;113.594575,23.544692;113.592144,23.545369;113.592144,23.545369;113.591892,23.545447', 'action': '直行', 'assistant_action': [], 'walk_type': '0'}, {'instruction': '沿新城东路向西北步行398米到达目的地', 'orientation': '西北', 'road': '新城东路', 'distance': '398', 'duration': '318', 'polyline': '113.591888,23.545447;113.591784,23.545516;113.591784,23.545516;113.590738,23.546155;113.590738,23.546155;113.590404,23.546367;113.590404,23.546367;113.590043,23.546584;113.590043,23.546584;113.589779,23.546745;113.589779,23.546745;113.589518,23.546905;113.589518,23.546905;113.588624,23.547461', 'action': [], 'assistant_action': '到达目的地', 'walk_type': '0'}]}]}}\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>instruction</th>\n",
       "      <th>orientation</th>\n",
       "      <th>road</th>\n",
       "      <th>distance</th>\n",
       "      <th>duration</th>\n",
       "      <th>polyline</th>\n",
       "      <th>action</th>\n",
       "      <th>assistant_action</th>\n",
       "      <th>walk_type</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>向东步行101米右转</td>\n",
       "      <td>东</td>\n",
       "      <td>[]</td>\n",
       "      <td>101</td>\n",
       "      <td>81</td>\n",
       "      <td>113.679592,23.632491;113.680586,23.632522</td>\n",
       "      <td>右转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>向南步行199米向右前方行走</td>\n",
       "      <td>南</td>\n",
       "      <td>[]</td>\n",
       "      <td>199</td>\n",
       "      <td>159</td>\n",
       "      <td>113.680586,23.632522;113.680638,23.63214;113.6...</td>\n",
       "      <td>向右前方行走</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>向西步行159米左转</td>\n",
       "      <td>西</td>\n",
       "      <td>[]</td>\n",
       "      <td>159</td>\n",
       "      <td>127</td>\n",
       "      <td>113.680204,23.630838;113.680035,23.630773;113....</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>向南步行237米左转</td>\n",
       "      <td>南</td>\n",
       "      <td>[]</td>\n",
       "      <td>237</td>\n",
       "      <td>190</td>\n",
       "      <td>113.678711,23.63036;113.678711,23.62934;113.67...</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>向南步行498米向右前方行走</td>\n",
       "      <td>南</td>\n",
       "      <td>[]</td>\n",
       "      <td>498</td>\n",
       "      <td>398</td>\n",
       "      <td>113.678273,23.628368;113.678572,23.628338;113....</td>\n",
       "      <td>向右前方行走</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>向西南步行722米左转</td>\n",
       "      <td>西南</td>\n",
       "      <td>[]</td>\n",
       "      <td>722</td>\n",
       "      <td>578</td>\n",
       "      <td>113.678572,23.624653;113.678559,23.62451;113.6...</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>向东南步行412米向右前方行走</td>\n",
       "      <td>东南</td>\n",
       "      <td>[]</td>\n",
       "      <td>412</td>\n",
       "      <td>330</td>\n",
       "      <td>113.675239,23.620009;113.67549,23.620013;113.6...</td>\n",
       "      <td>向右前方行走</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>沿乌土街向南步行1381米右转</td>\n",
       "      <td>南</td>\n",
       "      <td>乌土街</td>\n",
       "      <td>1381</td>\n",
       "      <td>1105</td>\n",
       "      <td>113.678181,23.617652;113.678095,23.617205;113....</td>\n",
       "      <td>右转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>沿乌土街向西南步行165米直行</td>\n",
       "      <td>西南</td>\n",
       "      <td>乌土街</td>\n",
       "      <td>165</td>\n",
       "      <td>132</td>\n",
       "      <td>113.677535,23.605668;113.676988,23.605373;113....</td>\n",
       "      <td>直行</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>沿934县道向西步行118米直行</td>\n",
       "      <td>西</td>\n",
       "      <td>934县道</td>\n",
       "      <td>118</td>\n",
       "      <td>94</td>\n",
       "      <td>113.676159,23.604883;113.675799,23.604805;113....</td>\n",
       "      <td>直行</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>沿桃园东路向西南步行674米向右前方行走</td>\n",
       "      <td>西南</td>\n",
       "      <td>桃园东路</td>\n",
       "      <td>674</td>\n",
       "      <td>539</td>\n",
       "      <td>113.675009,23.604735;113.674236,23.604683;113....</td>\n",
       "      <td>向右前方行走</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>沿桃园东路向西南步行247米直行</td>\n",
       "      <td>西南</td>\n",
       "      <td>桃园东路</td>\n",
       "      <td>247</td>\n",
       "      <td>198</td>\n",
       "      <td>113.669714,23.601897;113.66964,23.601771;113.6...</td>\n",
       "      <td>直行</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>沿桃园西路向西南步行2775米向右前方行走</td>\n",
       "      <td>西南</td>\n",
       "      <td>桃园西路</td>\n",
       "      <td>2775</td>\n",
       "      <td>2220</td>\n",
       "      <td>113.667943,23.600412;113.667331,23.600139;113....</td>\n",
       "      <td>向右前方行走</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>沿石海工业大道向西南步行1838米直行</td>\n",
       "      <td>西南</td>\n",
       "      <td>石海工业大道</td>\n",
       "      <td>1838</td>\n",
       "      <td>1470</td>\n",
       "      <td>113.656406,23.579358;113.656055,23.57931;113.6...</td>\n",
       "      <td>直行</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>沿政通路向西南步行2161米直行</td>\n",
       "      <td>西南</td>\n",
       "      <td>政通路</td>\n",
       "      <td>2161</td>\n",
       "      <td>1729</td>\n",
       "      <td>113.641432,23.570816;113.641168,23.570525;113....</td>\n",
       "      <td>直行</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>沿灌村路向西步行781米左转</td>\n",
       "      <td>西</td>\n",
       "      <td>灌村路</td>\n",
       "      <td>781</td>\n",
       "      <td>625</td>\n",
       "      <td>113.624983,23.562361;113.624431,23.562183;113....</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>沿环市东路向西南步行1582米向右前方行走</td>\n",
       "      <td>西南</td>\n",
       "      <td>环市东路</td>\n",
       "      <td>1582</td>\n",
       "      <td>1266</td>\n",
       "      <td>113.618247,23.559887;113.617626,23.559271;113....</td>\n",
       "      <td>向右前方行走</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>沿河东北路向西步行1383米向左前方行走</td>\n",
       "      <td>西</td>\n",
       "      <td>河东北路</td>\n",
       "      <td>1383</td>\n",
       "      <td>1106</td>\n",
       "      <td>113.608967,23.548637;113.608767,23.548576;113....</td>\n",
       "      <td>向左前方行走</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>沿河东北路向西南步行60米向左前方行走</td>\n",
       "      <td>西南</td>\n",
       "      <td>河东北路</td>\n",
       "      <td>60</td>\n",
       "      <td>48</td>\n",
       "      <td>113.595959,23.546024;113.595803,23.545964;113....</td>\n",
       "      <td>向左前方行走</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>沿河东北路向南步行129米右转</td>\n",
       "      <td>南</td>\n",
       "      <td>河东北路</td>\n",
       "      <td>129</td>\n",
       "      <td>103</td>\n",
       "      <td>113.595543,23.545668;113.595486,23.545386;113....</td>\n",
       "      <td>右转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>沿355省道向西步行407米直行</td>\n",
       "      <td>西</td>\n",
       "      <td>355省道</td>\n",
       "      <td>407</td>\n",
       "      <td>326</td>\n",
       "      <td>113.595764,23.544536;113.595681,23.544536;113....</td>\n",
       "      <td>直行</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>沿新城东路向西北步行398米到达目的地</td>\n",
       "      <td>西北</td>\n",
       "      <td>新城东路</td>\n",
       "      <td>398</td>\n",
       "      <td>318</td>\n",
       "      <td>113.591888,23.545447;113.591784,23.545516;113....</td>\n",
       "      <td>[]</td>\n",
       "      <td>到达目的地</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "              instruction orientation    road distance duration  \\\n",
       "0              向东步行101米右转           东      []      101       81   \n",
       "1          向南步行199米向右前方行走           南      []      199      159   \n",
       "2              向西步行159米左转           西      []      159      127   \n",
       "3              向南步行237米左转           南      []      237      190   \n",
       "4          向南步行498米向右前方行走           南      []      498      398   \n",
       "5             向西南步行722米左转          西南      []      722      578   \n",
       "6         向东南步行412米向右前方行走          东南      []      412      330   \n",
       "7         沿乌土街向南步行1381米右转           南     乌土街     1381     1105   \n",
       "8         沿乌土街向西南步行165米直行          西南     乌土街      165      132   \n",
       "9        沿934县道向西步行118米直行           西   934县道      118       94   \n",
       "10   沿桃园东路向西南步行674米向右前方行走          西南    桃园东路      674      539   \n",
       "11       沿桃园东路向西南步行247米直行          西南    桃园东路      247      198   \n",
       "12  沿桃园西路向西南步行2775米向右前方行走          西南    桃园西路     2775     2220   \n",
       "13    沿石海工业大道向西南步行1838米直行          西南  石海工业大道     1838     1470   \n",
       "14       沿政通路向西南步行2161米直行          西南     政通路     2161     1729   \n",
       "15         沿灌村路向西步行781米左转           西     灌村路      781      625   \n",
       "16  沿环市东路向西南步行1582米向右前方行走          西南    环市东路     1582     1266   \n",
       "17   沿河东北路向西步行1383米向左前方行走           西    河东北路     1383     1106   \n",
       "18    沿河东北路向西南步行60米向左前方行走          西南    河东北路       60       48   \n",
       "19        沿河东北路向南步行129米右转           南    河东北路      129      103   \n",
       "20       沿355省道向西步行407米直行           西   355省道      407      326   \n",
       "21    沿新城东路向西北步行398米到达目的地          西北    新城东路      398      318   \n",
       "\n",
       "                                             polyline  action  \\\n",
       "0           113.679592,23.632491;113.680586,23.632522      右转   \n",
       "1   113.680586,23.632522;113.680638,23.63214;113.6...  向右前方行走   \n",
       "2   113.680204,23.630838;113.680035,23.630773;113....      左转   \n",
       "3   113.678711,23.63036;113.678711,23.62934;113.67...      左转   \n",
       "4   113.678273,23.628368;113.678572,23.628338;113....  向右前方行走   \n",
       "5   113.678572,23.624653;113.678559,23.62451;113.6...      左转   \n",
       "6   113.675239,23.620009;113.67549,23.620013;113.6...  向右前方行走   \n",
       "7   113.678181,23.617652;113.678095,23.617205;113....      右转   \n",
       "8   113.677535,23.605668;113.676988,23.605373;113....      直行   \n",
       "9   113.676159,23.604883;113.675799,23.604805;113....      直行   \n",
       "10  113.675009,23.604735;113.674236,23.604683;113....  向右前方行走   \n",
       "11  113.669714,23.601897;113.66964,23.601771;113.6...      直行   \n",
       "12  113.667943,23.600412;113.667331,23.600139;113....  向右前方行走   \n",
       "13  113.656406,23.579358;113.656055,23.57931;113.6...      直行   \n",
       "14  113.641432,23.570816;113.641168,23.570525;113....      直行   \n",
       "15  113.624983,23.562361;113.624431,23.562183;113....      左转   \n",
       "16  113.618247,23.559887;113.617626,23.559271;113....  向右前方行走   \n",
       "17  113.608967,23.548637;113.608767,23.548576;113....  向左前方行走   \n",
       "18  113.595959,23.546024;113.595803,23.545964;113....  向左前方行走   \n",
       "19  113.595543,23.545668;113.595486,23.545386;113....      右转   \n",
       "20  113.595764,23.544536;113.595681,23.544536;113....      直行   \n",
       "21  113.591888,23.545447;113.591784,23.545516;113....      []   \n",
       "\n",
       "   assistant_action walk_type  \n",
       "0                []         0  \n",
       "1                []         0  \n",
       "2                []         0  \n",
       "3                []         0  \n",
       "4                []         0  \n",
       "5                []         0  \n",
       "6                []         0  \n",
       "7                []         0  \n",
       "8                []         0  \n",
       "9                []         0  \n",
       "10               []         0  \n",
       "11               []         0  \n",
       "12               []         0  \n",
       "13               []         0  \n",
       "14               []         0  \n",
       "15               []         0  \n",
       "16               []         0  \n",
       "17               []         0  \n",
       "18               []         0  \n",
       "19               []         0  \n",
       "20               []         0  \n",
       "21            到达目的地         0  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "0                向东步行101米右转\n",
       "1            向南步行199米向右前方行走\n",
       "2                向西步行159米左转\n",
       "3                向南步行237米左转\n",
       "4            向南步行498米向右前方行走\n",
       "5               向西南步行722米左转\n",
       "6           向东南步行412米向右前方行走\n",
       "7           沿乌土街向南步行1381米右转\n",
       "8           沿乌土街向西南步行165米直行\n",
       "9          沿934县道向西步行118米直行\n",
       "10     沿桃园东路向西南步行674米向右前方行走\n",
       "11         沿桃园东路向西南步行247米直行\n",
       "12    沿桃园西路向西南步行2775米向右前方行走\n",
       "13      沿石海工业大道向西南步行1838米直行\n",
       "14         沿政通路向西南步行2161米直行\n",
       "15           沿灌村路向西步行781米左转\n",
       "16    沿环市东路向西南步行1582米向右前方行走\n",
       "17     沿河东北路向西步行1383米向左前方行走\n",
       "18      沿河东北路向西南步行60米向左前方行走\n",
       "19          沿河东北路向南步行129米右转\n",
       "20         沿355省道向西步行407米直行\n",
       "21      沿新城东路向西北步行398米到达目的地\n",
       "Name: instruction, dtype: object"
      ]
     },
     "execution_count": 61,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# B-3 路径规划\n",
    "中大南方_从化客运站 = walking(中大南方_location,从化客运站_location)\n",
    "df_步行路径规划 = pd.json_normalize(中大南方_从化客运站[\"route\"][\"paths\"][0]['steps'])\n",
    "print(中大南方_从化客运站)\n",
    "display(df_步行路径规划)\n",
    "df_步行路径规划[\"instruction\"]\n",
    "# df_步行路径规划[\"polyline\"].values"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### 公交路线规划（代码C）\n",
    "* 必要参数：key，origin，destination，city\n",
    "* 可选参数：cityd（跨城必填），extensions，strategy，nightflag，date，time，sig，output，callback"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "(起点)中大南方_location: 113.679287,23.632575 (终点)从化客运站_location: 113.588823,23.547738\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'status': '1', 'info': 'OK', 'infocode': '10000', 'count': '4', 'route': {'origin': '113.679287,23.632575', 'destination': '113.588823,23.547738', 'distance': '17060', 'taxi_cost': '47', 'transits': [{'cost': [], 'duration': '4939', 'nightflag': '0', 'walking_distance': '773', 'distance': '19802', 'missed': '0', 'segments': [{'taxi': [], 'walking': {'origin': '113.679016,23.632349', 'destination': '113.676613,23.631285', 'distance': '513', 'duration': '439', 'steps': [{'instruction': '步行57米右转', 'road': [], 'distance': '57', 'duration': [], 'polyline': '113.679016,23.632349;113.678528,23.632097', 'action': '右转', 'assistant_action': []}, {'instruction': '步行47米向左前方行走', 'road': [], 'distance': '47', 'duration': [], 'polyline': '113.678528,23.632092;113.678398,23.632166;113.678101,23.632261', 'action': '向左前方行走', 'assistant_action': []}, {'instruction': '步行218米左转', 'road': [], 'distance': '218', 'duration': [], 'polyline': '113.678101,23.632261;113.677834,23.632261;113.677551,23.632200;113.677399,23.632179;113.677284,23.632200;113.677177,23.632244;113.677017,23.632357;113.676811,23.632534;113.676582,23.632778;113.676430,23.632904;113.676292,23.632969', 'action': '左转', 'assistant_action': []}, {'instruction': '沿博学路步行191米到达中大南方学院', 'road': '博学路', 'distance': '191', 'duration': [], 'polyline': '113.676285,23.632969;113.676292,23.632227;113.676338,23.631948;113.676430,23.631676;113.676491,23.631540;113.676613,23.631285', 'action': [], 'assistant_action': '到达中大南方学院'}]}, 'bus': {'buslines': [{'departure_stop': {'name': '中大南方学院', 'id': '900000111141002', 'location': '113.676613,23.631281'}, 'arrival_stop': {'name': '江埔社区', 'id': '900000111141014', 'location': '113.618210,23.573103'}, 'name': '从15路(中大南方学院--从化汽车站总站)', 'id': '900000111141', 'type': '普通公交线路', 'distance': '13472', 'duration': '2563', 'polyline': '113.676613,23.631281;113.676460,23.631588;113.676430,23.631672;113.676338,23.631945;113.676292,23.632223;113.676285,23.632969;113.676285,23.633560;113.676300,23.633738;113.676331,23.633875;113.676399,23.634016;113.676460,23.634111;113.676521,23.634193;113.676781,23.634409;113.676857,23.634357;113.676933,23.634340;113.677032,23.634354;113.677094,23.634396;113.677139,23.634459;113.677147,23.634535;113.677139,23.634600;113.677086,23.634663;113.677032,23.634701;113.676918,23.634718;113.676857,23.634701;113.676788,23.634657;113.675262,23.636129;113.675156,23.636263;113.675026,23.636467;113.674973,23.636566;113.674957,23.636702;113.674957,23.636845;113.674995,23.636995;113.675377,23.637886;113.675430,23.638042;113.675522,23.638659;113.675529,23.638998;113.675514,23.639132;113.675446,23.639311;113.675331,23.639582;113.675102,23.640036;113.675003,23.640186;113.674309,23.641024;113.673347,23.642139;113.672981,23.642536;113.672935,23.642578;113.672173,23.643307;113.671707,23.643766;113.671432,23.644045;113.673103,23.644968;113.674362,23.645651;113.675461,23.646276;113.675964,23.646635;113.676407,23.647018;113.676376,23.647089;113.675964,23.646744;113.675735,23.646566;113.675468,23.646385;113.675095,23.646172;113.673004,23.645004;113.669968,23.643330;113.669167,23.642881;113.668770,23.642673;113.668594,23.642578;113.667007,23.641693;113.666145,23.641171;113.665314,23.640564;113.665253,23.640511;113.665016,23.640301;113.664772,23.640064;113.664551,23.639812;113.664406,23.639662;113.664207,23.639400;113.663925,23.639021;113.663574,23.638451;113.663361,23.638020;113.662323,23.635933;113.661949,23.635181;113.661461,23.634266;113.661224,23.633898;113.660843,23.633383;113.660683,23.633192;113.660248,23.632704;113.659721,23.632172;113.659370,23.631880;113.659256,23.631794;113.658989,23.631588;113.658897,23.631519;113.658211,23.631102;113.657707,23.630760;113.657425,23.630590;113.656944,23.630304;113.656940,23.630304;113.654336,23.628741;113.653850,23.628416;113.653598,23.628225;113.652383,23.627179;113.650165,23.625326;113.650022,23.625221;113.649766,23.625013;113.649731,23.624987;113.649731,23.624983;113.648980,23.624384;113.648611,23.624063;113.647843,23.623442;113.647361,23.623090;113.646780,23.622721;113.646345,23.622465;113.645981,23.622287;113.645595,23.622131;113.645117,23.621992;113.644709,23.621914;113.644640,23.621901;113.644635,23.621901;113.644375,23.621862;113.643255,23.621749;113.642578,23.621667;113.642474,23.621645;113.642027,23.621541;113.641450,23.621354;113.640525,23.621033;113.639332,23.620603;113.639184,23.620543;113.638850,23.620412;113.638433,23.620213;113.638325,23.620156;113.638329,23.620155;113.636047,23.618944;113.635544,23.618668;113.635254,23.618481;113.634750,23.618097;113.634514,23.617891;113.634254,23.617622;113.633980,23.617271;113.633636,23.616779;113.633057,23.615911;113.632957,23.615774;113.632401,23.614927;113.631912,23.614172;113.631660,23.613710;113.631432,23.613142;113.631287,23.612659;113.630905,23.611076;113.630844,23.610802;113.630844,23.610798;113.630768,23.610516;113.630661,23.610060;113.630569,23.609705;113.630554,23.609617;113.630501,23.609388;113.630119,23.607822;113.629776,23.606388;113.629395,23.604740;113.628891,23.602587;113.628479,23.600821;113.628136,23.599293;113.627968,23.598680;113.627953,23.598633;113.627884,23.598433;113.627785,23.598202;113.627632,23.597919;113.627487,23.597683;113.627281,23.597401;113.627037,23.597139;113.626106,23.596230;113.625641,23.595755;113.624992,23.595139;113.624092,23.594326;113.623161,23.593433;113.622879,23.593147;113.622734,23.592981;113.622383,23.592590;113.622055,23.592186;113.621872,23.591957;113.621574,23.591545;113.621292,23.591133;113.621117,23.590864;113.620880,23.590433;113.620735,23.590164;113.620674,23.590054;113.620673,23.590052;113.620603,23.589913;113.619475,23.587643;113.619401,23.587491;113.619401,23.587487;113.619175,23.587040;113.618984,23.586658;113.618893,23.586471;113.618598,23.585868;113.618108,23.584874;113.617930,23.584440;113.617769,23.583928;113.617708,23.583646;113.617630,23.583073;113.617582,23.582478;113.617578,23.582357;113.617578,23.582361;113.617584,23.582365;113.617584,23.582359;113.617554,23.581884;113.617485,23.580811;113.617477,23.580591;113.617485,23.580204;113.617493,23.579849;113.617554,23.579384;113.617668,23.578743;113.617760,23.578316;113.617790,23.578138;113.618042,23.576904;113.618080,23.576723;113.618095,23.576658;113.618118,23.576557;113.618187,23.576189;113.618347,23.575378;113.618416,23.574808;113.618423,23.574497;113.618408,23.574158;113.618286,23.573481;113.618263,23.573381;113.618210,23.573103', 'bustimetag': '0', 'start_time': '0900', 'end_time': '1800', 'via_num': '11', 'via_stops': [{'name': '卫东', 'id': '900000111141003', 'location': '113.671707,23.643766'}, {'name': '交警温泉中队', 'id': '900000111141029', 'location': '113.656944,23.630304'}, {'name': '冲口', 'id': '900000111141022', 'location': '113.649731,23.624987'}, {'name': '牛步迳', 'id': '900000111141006', 'location': '113.644640,23.621901'}, {'name': '华辉度假村', 'id': '900000111141023', 'location': '113.638325,23.620156'}, {'name': '温泉镇政府', 'id': '900000111141008', 'location': '113.632957,23.615774'}, {'name': '云星村', 'id': '900000111141024', 'location': '113.630844,23.610802'}, {'name': '宣星路口', 'id': '900000111141010', 'location': '113.628891,23.602587'}, {'name': '新华', 'id': '900000111141011', 'location': '113.620674,23.590054'}, {'name': '水底村', 'id': '900000111141012', 'location': '113.619401,23.587491'}, {'name': '南洋学院', 'id': '900000111141028', 'location': '113.617578,23.582357'}]}]}, 'entrance': [], 'exit': [], 'railway': {'via_stops': [], 'alters': [], 'spaces': []}}, {'taxi': [], 'walking': {'origin': '113.618210,23.573099', 'destination': '113.618202,23.573051', 'distance': '5', 'duration': '4', 'steps': [{'instruction': '沿环市东路步行5米到达江埔社区', 'road': '环市东路', 'distance': '5', 'duration': [], 'polyline': '113.618210,23.573099;113.618202,23.573051', 'action': [], 'assistant_action': '到达江埔社区'}]}, 'bus': {'buslines': [{'departure_stop': {'name': '江埔社区', 'id': '900000077947014', 'location': '113.618195,23.573051'}, 'arrival_stop': {'name': '新世纪广场', 'id': '900000077947027', 'location': '113.588890,23.548321'}, 'name': '从4路短线(温泉农贸市场--从化汽车站总站)', 'id': '900000077947', 'type': '普通公交线路', 'distance': '5557', 'duration': '1714', 'polyline': '113.618195,23.573051;113.618179,23.572929;113.618088,23.572496;113.618057,23.572327;113.618042,23.572153;113.618004,23.571901;113.617996,23.571598;113.617996,23.571442;113.618004,23.571232;113.618042,23.570911;113.618073,23.570568;113.618317,23.568914;113.618347,23.568768;113.618469,23.567947;113.618507,23.567574;113.618645,23.566696;113.618759,23.565947;113.618698,23.565739;113.618675,23.565678;113.618622,23.565590;113.618538,23.565521;113.618370,23.565392;113.617310,23.565460;113.614960,23.565613;113.614754,23.565556;113.613747,23.565599;113.611832,23.565725;113.608177,23.565924;113.607445,23.565968;113.607338,23.565985;113.607239,23.566015;113.607147,23.566069;113.607086,23.566120;113.607018,23.566198;113.606979,23.566246;113.606964,23.566355;113.606972,23.566423;113.607018,23.566532;113.607063,23.566589;113.607170,23.566658;113.607239,23.566685;113.607307,23.566696;113.607529,23.566692;113.608070,23.566654;113.608040,23.566120;113.607971,23.565022;113.607948,23.564657;113.607903,23.563993;113.607758,23.561975;113.607689,23.560976;113.607674,23.560760;113.607635,23.559965;113.607567,23.558090;113.607552,23.557634;113.607552,23.557491;113.607536,23.557161;113.607536,23.557158;113.607498,23.556211;113.607483,23.555820;113.607460,23.555616;113.607414,23.555439;113.607346,23.555252;113.607254,23.555079;113.607155,23.554909;113.606979,23.554726;113.606926,23.554678;113.606369,23.554157;113.606369,23.554153;113.605904,23.553724;113.605728,23.553528;113.605431,23.553143;113.605240,23.552938;113.604378,23.552135;113.604202,23.551996;113.604004,23.551863;113.603752,23.551723;113.603508,23.551615;113.603455,23.551598;113.603455,23.551594;113.603210,23.551516;113.603065,23.551476;113.602882,23.551445;113.602608,23.551414;113.602379,23.551401;113.600624,23.551394;113.599731,23.551394;113.599213,23.551397;113.599144,23.551397;113.598633,23.551394;113.598373,23.551384;113.597778,23.551397;113.596657,23.551394;113.596596,23.551384;113.596207,23.551376;113.596008,23.551353;113.595757,23.551289;113.595156,23.551252;113.595032,23.550898;113.594704,23.550690;113.594452,23.550533;113.593994,23.550255;113.593735,23.550108;113.593437,23.549923;113.593216,23.549757;113.593063,23.549587;113.593002,23.549494;113.592934,23.549240;113.592842,23.548624;113.592834,23.548433;113.592834,23.548429;113.592827,23.548269;113.592781,23.547560;113.592644,23.547079;113.592606,23.546940;113.592606,23.546944;113.592621,23.546944;113.592621,23.546940;113.592537,23.546675;113.592361,23.546249;113.591469,23.547113;113.591110,23.547375;113.590714,23.547590;113.590599,23.547651;113.590424,23.547747;113.590096,23.547930;113.589523,23.548264;113.589432,23.548285;113.589287,23.548307;113.588890,23.548321', 'bustimetag': '0', 'start_time': '0800', 'end_time': '2000', 'via_num': '12', 'via_stops': [{'name': '江村', 'id': '900000077947015', 'location': '113.618317,23.568914'}, {'name': '迎宾大桥', 'id': '900000077947016', 'location': '113.617310,23.565460'}, {'name': '殷家庄', 'id': '900000077947017', 'location': '113.607948,23.564657'}, {'name': '儿童公园', 'id': '900000077947018', 'location': '113.607674,23.560760'}, {'name': '法院检察院站', 'id': '900000077947019', 'location': '113.607536,23.557161'}, {'name': '从化图书馆', 'id': '900000077947020', 'location': '113.606369,23.554157'}, {'name': '自来水公司', 'id': '900000077947021', 'location': '113.603455,23.551598'}, {'name': '从化广播电视台', 'id': '900000077947022', 'location': '113.599731,23.551394'}, {'name': '从化政务服务中心', 'id': '900000077947023', 'location': '113.594452,23.550533'}, {'name': '儿童乐园', 'id': '900000077947024', 'location': '113.592834,23.548433'}, {'name': '河堤广场', 'id': '900000077947025', 'location': '113.592606,23.546940'}, {'name': '河滨公园', 'id': '900000077947026', 'location': '113.590714,23.547590'}]}, {'departure_stop': {'name': '江埔社区', 'id': '440100017384062', 'location': '113.618229,23.573194'}, 'arrival_stop': {'name': '新世纪广场', 'id': '440100017384046', 'location': '113.588837,23.548321'}, 'name': '从4路(温泉明月山溪总站--从化汽车站总站)', 'id': '440100017384', 'type': '普通公交线路', 'distance': '5511', 'duration': '1776', 'polyline': '113.618229,23.573194;113.618229,23.573190;113.618134,23.572730;113.618077,23.572431;113.618034,23.572153;113.618008,23.571901;113.617990,23.571445;113.618034,23.570911;113.618155,23.570013;113.618190,23.569787;113.618316,23.568954;113.618333,23.568824;113.618464,23.567951;113.618485,23.567786;113.618646,23.566697;113.618759,23.565946;113.618698,23.565738;113.618672,23.565673;113.618650,23.565634;113.618542,23.565521;113.618368,23.565386;113.617261,23.565443;113.617257,23.565443;113.615959,23.565512;113.614948,23.565560;113.613438,23.565625;113.612665,23.565673;113.611810,23.565725;113.608173,23.565924;113.607448,23.565968;113.607244,23.566016;113.607083,23.566115;113.607010,23.566198;113.606966,23.566306;113.606966,23.566376;113.606988,23.566471;113.607070,23.566589;113.607166,23.566658;113.607235,23.566684;113.607309,23.566697;113.607530,23.566693;113.608073,23.566654;113.608038,23.566124;113.608012,23.565673;113.607977,23.565135;113.607930,23.564436;113.607925,23.564440;113.607925,23.564436;113.607903,23.564020;113.607758,23.561975;113.607681,23.560751;113.607682,23.560747;113.607639,23.559965;113.607604,23.558984;113.607574,23.558099;113.607574,23.558043;113.607556,23.557635;113.607552,23.557491;113.607539,23.557170;113.607539,23.557166;113.607526,23.556697;113.607504,23.556211;113.607483,23.555825;113.607457,23.555612;113.607413,23.555438;113.607344,23.555256;113.607257,23.555082;113.607148,23.554909;113.606940,23.554688;113.606931,23.554674;113.606267,23.554058;113.606263,23.554058;113.605903,23.553724;113.605729,23.553533;113.605434,23.553147;113.605243,23.552938;113.604371,23.552135;113.604206,23.551997;113.604002,23.551862;113.603750,23.551719;113.603507,23.551610;113.603420,23.551584;113.603424,23.551584;113.603218,23.551516;113.602890,23.551445;113.602592,23.551416;113.602325,23.551403;113.601494,23.551394;113.601372,23.551394;113.600693,23.551394;113.600624,23.551394;113.599663,23.551394;113.599213,23.551397;113.599144,23.551397;113.598633,23.551394;113.598373,23.551384;113.597778,23.551397;113.596657,23.551394;113.596596,23.551384;113.596207,23.551376;113.596008,23.551353;113.595757,23.551289;113.595032,23.550898;113.594704,23.550690;113.594452,23.550537;113.594449,23.550534;113.593989,23.550256;113.593733,23.550113;113.593503,23.549965;113.593437,23.549922;113.593216,23.549757;113.592995,23.549466;113.592908,23.549110;113.592847,23.548624;113.592826,23.548268;113.592817,23.548147;113.592819,23.548147;113.592781,23.547560;113.592644,23.547079;113.592522,23.546671;113.592415,23.546415;113.592346,23.546280;113.591393,23.547153;113.591110,23.547373;113.590736,23.547577;113.590599,23.547651;113.590424,23.547747;113.590096,23.547930;113.589523,23.548264;113.589432,23.548285;113.589287,23.548307;113.588860,23.548325;113.588837,23.548321', 'bustimetag': '0', 'start_time': '0630', 'end_time': '2230', 'via_num': '11', 'via_stops': [{'name': '江村', 'id': '440100017384024', 'location': '113.618316,23.568954'}, {'name': '迎宾大桥', 'id': '440100017384025', 'location': '113.617261,23.565443'}, {'name': '殷家庄', 'id': '440100017384026', 'location': '113.607930,23.564436'}, {'name': '儿童公园', 'id': '440100017384073', 'location': '113.607681,23.560751'}, {'name': '法院检察院站', 'id': '440100017384060', 'location': '113.607539,23.557170'}, {'name': '图书馆', 'id': '440100017384074', 'location': '113.606267,23.554058'}, {'name': '自来水公司', 'id': '440100017384028', 'location': '113.603420,23.551584'}, {'name': '从化广播电视台', 'id': '440100017384029', 'location': '113.599663,23.551394'}, {'name': '从化政务服务中心', 'id': '440100017384045', 'location': '113.594452,23.550537'}, {'name': '从化博物馆', 'id': '440100017384075', 'location': '113.592817,23.548147'}, {'name': '河滨公园', 'id': '440100017384033', 'location': '113.590736,23.547577'}]}]}, 'entrance': [], 'exit': [], 'railway': {'via_stops': [], 'alters': [], 'spaces': []}}, {'taxi': [], 'walking': {'origin': '113.588799,23.548315', 'destination': '113.588623,23.547464', 'distance': '255', 'duration': '218', 'steps': [{'instruction': '沿东成路步行126米左转', 'road': '东成路', 'distance': '126', 'duration': [], 'polyline': '113.588799,23.548315;113.588615,23.548298;113.588364,23.548260;113.587570,23.548120', 'action': '左转', 'assistant_action': []}, {'instruction': '沿新城东路步行129米', 'road': '新城东路', 'distance': '129', 'duration': [], 'polyline': '113.587570,23.548117;113.587708,23.548025;113.588623,23.547464', 'action': [], 'assistant_action': []}]}, 'bus': {'buslines': []}, 'entrance': [], 'exit': [], 'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]}, {'cost': '3.0', 'duration': '4755', 'nightflag': '0', 'walking_distance': '769', 'distance': '19679', 'missed': '0', 'segments': [{'taxi': [], 'walking': {'origin': '113.679016,23.632349', 'destination': '113.676613,23.631285', 'distance': '513', 'duration': '439', 'steps': [{'instruction': '步行57米右转', 'road': [], 'distance': '57', 'duration': [], 'polyline': '113.679016,23.632349;113.678528,23.632097', 'action': '右转', 'assistant_action': []}, {'instruction': '步行47米向左前方行走', 'road': [], 'distance': '47', 'duration': [], 'polyline': '113.678528,23.632092;113.678398,23.632166;113.678101,23.632261', 'action': '向左前方行走', 'assistant_action': []}, {'instruction': '步行218米左转', 'road': [], 'distance': '218', 'duration': [], 'polyline': '113.678101,23.632261;113.677834,23.632261;113.677551,23.632200;113.677399,23.632179;113.677284,23.632200;113.677177,23.632244;113.677017,23.632357;113.676811,23.632534;113.676582,23.632778;113.676430,23.632904;113.676292,23.632969', 'action': '左转', 'assistant_action': []}, {'instruction': '沿博学路步行191米到达中大南方学院', 'road': '博学路', 'distance': '191', 'duration': [], 'polyline': '113.676285,23.632969;113.676292,23.632227;113.676338,23.631948;113.676430,23.631676;113.676491,23.631540;113.676613,23.631285', 'action': [], 'assistant_action': '到达中大南方学院'}]}, 'bus': {'buslines': [{'departure_stop': {'name': '中大南方学院', 'id': '900000111141002', 'location': '113.676613,23.631281'}, 'arrival_stop': {'name': '凤院路口', 'id': '900000111141016', 'location': '113.610443,23.550087'}, 'name': '从15路(中大南方学院--从化汽车站总站)', 'id': '900000111141', 'type': '普通公交线路', 'distance': '16263', 'duration': '2922', 'polyline': '113.676613,23.631281;113.676460,23.631588;113.676430,23.631672;113.676338,23.631945;113.676292,23.632223;113.676285,23.632969;113.676285,23.633560;113.676300,23.633738;113.676331,23.633875;113.676399,23.634016;113.676460,23.634111;113.676521,23.634193;113.676781,23.634409;113.676857,23.634357;113.676933,23.634340;113.677032,23.634354;113.677094,23.634396;113.677139,23.634459;113.677147,23.634535;113.677139,23.634600;113.677086,23.634663;113.677032,23.634701;113.676918,23.634718;113.676857,23.634701;113.676788,23.634657;113.675262,23.636129;113.675156,23.636263;113.675026,23.636467;113.674973,23.636566;113.674957,23.636702;113.674957,23.636845;113.674995,23.636995;113.675377,23.637886;113.675430,23.638042;113.675522,23.638659;113.675529,23.638998;113.675514,23.639132;113.675446,23.639311;113.675331,23.639582;113.675102,23.640036;113.675003,23.640186;113.674309,23.641024;113.673347,23.642139;113.672981,23.642536;113.672935,23.642578;113.672173,23.643307;113.671707,23.643766;113.671432,23.644045;113.673103,23.644968;113.674362,23.645651;113.675461,23.646276;113.675964,23.646635;113.676407,23.647018;113.676376,23.647089;113.675964,23.646744;113.675735,23.646566;113.675468,23.646385;113.675095,23.646172;113.673004,23.645004;113.669968,23.643330;113.669167,23.642881;113.668770,23.642673;113.668594,23.642578;113.667007,23.641693;113.666145,23.641171;113.665314,23.640564;113.665253,23.640511;113.665016,23.640301;113.664772,23.640064;113.664551,23.639812;113.664406,23.639662;113.664207,23.639400;113.663925,23.639021;113.663574,23.638451;113.663361,23.638020;113.662323,23.635933;113.661949,23.635181;113.661461,23.634266;113.661224,23.633898;113.660843,23.633383;113.660683,23.633192;113.660248,23.632704;113.659721,23.632172;113.659370,23.631880;113.659256,23.631794;113.658989,23.631588;113.658897,23.631519;113.658211,23.631102;113.657707,23.630760;113.657425,23.630590;113.656944,23.630304;113.656940,23.630304;113.654336,23.628741;113.653850,23.628416;113.653598,23.628225;113.652383,23.627179;113.650165,23.625326;113.650022,23.625221;113.649766,23.625013;113.649731,23.624987;113.649731,23.624983;113.648980,23.624384;113.648611,23.624063;113.647843,23.623442;113.647361,23.623090;113.646780,23.622721;113.646345,23.622465;113.645981,23.622287;113.645595,23.622131;113.645117,23.621992;113.644709,23.621914;113.644640,23.621901;113.644635,23.621901;113.644375,23.621862;113.643255,23.621749;113.642578,23.621667;113.642474,23.621645;113.642027,23.621541;113.641450,23.621354;113.640525,23.621033;113.639332,23.620603;113.639184,23.620543;113.638850,23.620412;113.638433,23.620213;113.638325,23.620156;113.638329,23.620155;113.636047,23.618944;113.635544,23.618668;113.635254,23.618481;113.634750,23.618097;113.634514,23.617891;113.634254,23.617622;113.633980,23.617271;113.633636,23.616779;113.633057,23.615911;113.632957,23.615774;113.632401,23.614927;113.631912,23.614172;113.631660,23.613710;113.631432,23.613142;113.631287,23.612659;113.630905,23.611076;113.630844,23.610802;113.630844,23.610798;113.630768,23.610516;113.630661,23.610060;113.630569,23.609705;113.630554,23.609617;113.630501,23.609388;113.630119,23.607822;113.629776,23.606388;113.629395,23.604740;113.628891,23.602587;113.628479,23.600821;113.628136,23.599293;113.627968,23.598680;113.627953,23.598633;113.627884,23.598433;113.627785,23.598202;113.627632,23.597919;113.627487,23.597683;113.627281,23.597401;113.627037,23.597139;113.626106,23.596230;113.625641,23.595755;113.624992,23.595139;113.624092,23.594326;113.623161,23.593433;113.622879,23.593147;113.622734,23.592981;113.622383,23.592590;113.622055,23.592186;113.621872,23.591957;113.621574,23.591545;113.621292,23.591133;113.621117,23.590864;113.620880,23.590433;113.620735,23.590164;113.620674,23.590054;113.620673,23.590052;113.620603,23.589913;113.619475,23.587643;113.619401,23.587491;113.619401,23.587487;113.619175,23.587040;113.618984,23.586658;113.618893,23.586471;113.618598,23.585868;113.618108,23.584874;113.617930,23.584440;113.617769,23.583928;113.617708,23.583646;113.617630,23.583073;113.617582,23.582478;113.617578,23.582357;113.617578,23.582361;113.617584,23.582365;113.617584,23.582359;113.617554,23.581884;113.617485,23.580811;113.617477,23.580591;113.617485,23.580204;113.617493,23.579849;113.617554,23.579384;113.617668,23.578743;113.617760,23.578316;113.617790,23.578138;113.618042,23.576904;113.618080,23.576723;113.618095,23.576658;113.618118,23.576557;113.618187,23.576189;113.618347,23.575378;113.618416,23.574808;113.618423,23.574497;113.618408,23.574158;113.618286,23.573481;113.618263,23.573381;113.618210,23.573103;113.618210,23.573111;113.618210,23.573120;113.618210,23.573116;113.618172,23.572929;113.618080,23.572432;113.618034,23.572153;113.618011,23.571901;113.617989,23.571444;113.618034,23.570911;113.618187,23.569813;113.618332,23.568825;113.618462,23.567951;113.618652,23.566698;113.618759,23.565947;113.618790,23.565674;113.618828,23.565474;113.618843,23.565365;113.618874,23.565182;113.618896,23.565014;113.618896,23.564964;113.619118,23.563465;113.619171,23.563156;113.619263,23.562523;113.619286,23.562109;113.619263,23.561775;113.619232,23.561602;113.619171,23.561384;113.619011,23.561010;113.618790,23.560673;113.618652,23.560495;113.618149,23.559973;113.617950,23.559765;113.616966,23.558811;113.615730,23.557600;113.615547,23.557409;113.615356,23.557222;113.615105,23.556976;113.614723,23.556602;113.614052,23.555933;113.613762,23.555609;113.613365,23.555122;113.613190,23.554810;113.613129,23.554688;113.613052,23.554518;113.612823,23.554016;113.612648,23.553556;113.612625,23.553484;113.612602,23.553438;113.612549,23.553284;113.612526,23.553211;113.612526,23.553207;113.612282,23.552565;113.612068,23.551991;113.611961,23.551771;113.611816,23.551476;113.611557,23.551102;113.611328,23.550846;113.611069,23.550591;113.610443,23.550087', 'bustimetag': '0', 'start_time': '0900', 'end_time': '1800', 'via_num': '14', 'via_stops': [{'name': '卫东', 'id': '900000111141003', 'location': '113.671707,23.643766'}, {'name': '交警温泉中队', 'id': '900000111141029', 'location': '113.656944,23.630304'}, {'name': '冲口', 'id': '900000111141022', 'location': '113.649731,23.624987'}, {'name': '牛步迳', 'id': '900000111141006', 'location': '113.644640,23.621901'}, {'name': '华辉度假村', 'id': '900000111141023', 'location': '113.638325,23.620156'}, {'name': '温泉镇政府', 'id': '900000111141008', 'location': '113.632957,23.615774'}, {'name': '云星村', 'id': '900000111141024', 'location': '113.630844,23.610802'}, {'name': '宣星路口', 'id': '900000111141010', 'location': '113.628891,23.602587'}, {'name': '新华', 'id': '900000111141011', 'location': '113.620674,23.590054'}, {'name': '水底村', 'id': '900000111141012', 'location': '113.619401,23.587491'}, {'name': '南洋学院', 'id': '900000111141028', 'location': '113.617578,23.582357'}, {'name': '江埔社区', 'id': '900000111141014', 'location': '113.618210,23.573103'}, {'name': '沙塱村', 'id': '900000111141015', 'location': '113.615547,23.557409'}, {'name': '凤院北', 'id': '900000111141025', 'location': '113.612526,23.553211'}]}]}, 'entrance': [], 'exit': [], 'railway': {'via_stops': [], 'alters': [], 'spaces': []}}, {'taxi': [], 'walking': {'origin': '113.610435,23.550074', 'destination': '113.610451,23.550081', 'distance': '1', 'duration': '0', 'steps': [{'instruction': '沿环市东路步行1米往前走到达凤院路口', 'road': '环市东路', 'distance': '1', 'duration': [], 'polyline': '113.610435,23.550074;113.610443,23.550077;113.610451,23.550081', 'action': '往前走', 'assistant_action': '到达凤院路口'}]}, 'bus': {'buslines': [{'departure_stop': {'name': '凤院路口', 'id': '440100014900004', 'location': '113.610451,23.550087'}, 'arrival_stop': {'name': '新世纪广场', 'id': '440100014900010', 'location': '113.588799,23.548315'}, 'name': '从7路(水利学院总站--南医大五附院总站)', 'id': '440100014900', 'type': '普通公交线路', 'distance': '2647', 'duration': '1174', 'polyline': '113.610451,23.550087;113.610451,23.550091;113.610451,23.550095;113.610451,23.550091;113.610435,23.550077;113.609962,23.549686;113.609459,23.549290;113.609207,23.549063;113.609055,23.548923;113.608841,23.548676;113.608452,23.548498;113.607582,23.548014;113.606888,23.547691;113.606842,23.547668;113.606499,23.547514;113.606497,23.547513;113.606445,23.547491;113.604735,23.546732;113.604258,23.546549;113.603850,23.546424;113.603303,23.546315;113.603051,23.546289;113.602782,23.546267;113.602270,23.546280;113.601424,23.546302;113.601037,23.546324;113.600898,23.546328;113.600547,23.546350;113.600299,23.546354;113.599492,23.546393;113.599071,23.546372;113.598633,23.546350;113.598442,23.546337;113.597661,23.546306;113.597664,23.546307;113.597534,23.546303;113.597290,23.546284;113.596779,23.546215;113.596260,23.546143;113.595932,23.546085;113.595840,23.546061;113.595810,23.546055;113.595695,23.546007;113.595566,23.545874;113.595467,23.545715;113.595428,23.545610;113.595398,23.545324;113.595421,23.545177;113.595528,23.544868;113.595467,23.544701;113.595413,23.544626;113.595306,23.544531;113.595016,23.544575;113.594620,23.544676;113.592140,23.545368;113.592133,23.545534;113.592392,23.546143;113.592361,23.546253;113.591393,23.547153;113.591110,23.547373;113.590675,23.547609;113.590599,23.547651;113.590424,23.547747;113.590096,23.547930;113.589523,23.548264;113.589432,23.548285;113.589287,23.548307;113.588860,23.548325;113.588799,23.548315', 'bustimetag': '0', 'start_time': '0730', 'end_time': '2100', 'via_num': '5', 'via_stops': [{'name': '光导纤维厂', 'id': '440100014900005', 'location': '113.606499,23.547514'}, {'name': '大江路口', 'id': '440100014900006', 'location': '113.602270,23.546280'}, {'name': '塱仔新村', 'id': '440100014900007', 'location': '113.597661,23.546306'}, {'name': '河东广场', 'id': '440100014900008', 'location': '113.595840,23.546061'}, {'name': '河滨公园', 'id': '440100014900009', 'location': '113.590675,23.547609'}]}]}, 'entrance': [], 'exit': [], 'railway': {'via_stops': [], 'alters': [], 'spaces': []}}, {'taxi': [], 'walking': {'origin': '113.588799,23.548315', 'destination': '113.588623,23.547464', 'distance': '255', 'duration': '218', 'steps': [{'instruction': '沿东成路步行126米左转', 'road': '东成路', 'distance': '126', 'duration': [], 'polyline': '113.588799,23.548315;113.588615,23.548298;113.588364,23.548260;113.587570,23.548120', 'action': '左转', 'assistant_action': []}, {'instruction': '沿新城东路步行129米', 'road': '新城东路', 'distance': '129', 'duration': [], 'polyline': '113.587570,23.548117;113.587708,23.548025;113.588623,23.547464', 'action': [], 'assistant_action': []}]}, 'bus': {'buslines': []}, 'entrance': [], 'exit': [], 'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]}, {'cost': '3.0', 'duration': '5570', 'nightflag': '0', 'walking_distance': '728', 'distance': '23111', 'missed': '0', 'segments': [{'taxi': [], 'walking': {'origin': '113.679016,23.632349', 'destination': '113.676613,23.631285', 'distance': '513', 'duration': '439', 'steps': [{'instruction': '步行57米右转', 'road': [], 'distance': '57', 'duration': [], 'polyline': '113.679016,23.632349;113.678528,23.632097', 'action': '右转', 'assistant_action': []}, {'instruction': '步行47米向左前方行走', 'road': [], 'distance': '47', 'duration': [], 'polyline': '113.678528,23.632092;113.678398,23.632166;113.678101,23.632261', 'action': '向左前方行走', 'assistant_action': []}, {'instruction': '步行218米左转', 'road': [], 'distance': '218', 'duration': [], 'polyline': '113.678101,23.632261;113.677834,23.632261;113.677551,23.632200;113.677399,23.632179;113.677284,23.632200;113.677177,23.632244;113.677017,23.632357;113.676811,23.632534;113.676582,23.632778;113.676430,23.632904;113.676292,23.632969', 'action': '左转', 'assistant_action': []}, {'instruction': '沿博学路步行191米到达中大南方学院', 'road': '博学路', 'distance': '191', 'duration': [], 'polyline': '113.676285,23.632969;113.676292,23.632227;113.676338,23.631948;113.676430,23.631676;113.676491,23.631540;113.676613,23.631285', 'action': [], 'assistant_action': '到达中大南方学院'}]}, 'bus': {'buslines': [{'departure_stop': {'name': '中大南方学院', 'id': '900000111141002', 'location': '113.676613,23.631281'}, 'arrival_stop': {'name': '城建学院', 'id': '900000111141020', 'location': '113.607122,23.530247'}, 'name': '从15路(中大南方学院--从化汽车站总站)', 'id': '900000111141', 'type': '普通公交线路', 'distance': '18445', 'duration': '3330', 'polyline': '113.676613,23.631281;113.676460,23.631588;113.676430,23.631672;113.676338,23.631945;113.676292,23.632223;113.676285,23.632969;113.676285,23.633560;113.676300,23.633738;113.676331,23.633875;113.676399,23.634016;113.676460,23.634111;113.676521,23.634193;113.676781,23.634409;113.676857,23.634357;113.676933,23.634340;113.677032,23.634354;113.677094,23.634396;113.677139,23.634459;113.677147,23.634535;113.677139,23.634600;113.677086,23.634663;113.677032,23.634701;113.676918,23.634718;113.676857,23.634701;113.676788,23.634657;113.675262,23.636129;113.675156,23.636263;113.675026,23.636467;113.674973,23.636566;113.674957,23.636702;113.674957,23.636845;113.674995,23.636995;113.675377,23.637886;113.675430,23.638042;113.675522,23.638659;113.675529,23.638998;113.675514,23.639132;113.675446,23.639311;113.675331,23.639582;113.675102,23.640036;113.675003,23.640186;113.674309,23.641024;113.673347,23.642139;113.672981,23.642536;113.672935,23.642578;113.672173,23.643307;113.671707,23.643766;113.671432,23.644045;113.673103,23.644968;113.674362,23.645651;113.675461,23.646276;113.675964,23.646635;113.676407,23.647018;113.676376,23.647089;113.675964,23.646744;113.675735,23.646566;113.675468,23.646385;113.675095,23.646172;113.673004,23.645004;113.669968,23.643330;113.669167,23.642881;113.668770,23.642673;113.668594,23.642578;113.667007,23.641693;113.666145,23.641171;113.665314,23.640564;113.665253,23.640511;113.665016,23.640301;113.664772,23.640064;113.664551,23.639812;113.664406,23.639662;113.664207,23.639400;113.663925,23.639021;113.663574,23.638451;113.663361,23.638020;113.662323,23.635933;113.661949,23.635181;113.661461,23.634266;113.661224,23.633898;113.660843,23.633383;113.660683,23.633192;113.660248,23.632704;113.659721,23.632172;113.659370,23.631880;113.659256,23.631794;113.658989,23.631588;113.658897,23.631519;113.658211,23.631102;113.657707,23.630760;113.657425,23.630590;113.656944,23.630304;113.656940,23.630304;113.654336,23.628741;113.653850,23.628416;113.653598,23.628225;113.652383,23.627179;113.650165,23.625326;113.650022,23.625221;113.649766,23.625013;113.649731,23.624987;113.649731,23.624983;113.648980,23.624384;113.648611,23.624063;113.647843,23.623442;113.647361,23.623090;113.646780,23.622721;113.646345,23.622465;113.645981,23.622287;113.645595,23.622131;113.645117,23.621992;113.644709,23.621914;113.644640,23.621901;113.644635,23.621901;113.644375,23.621862;113.643255,23.621749;113.642578,23.621667;113.642474,23.621645;113.642027,23.621541;113.641450,23.621354;113.640525,23.621033;113.639332,23.620603;113.639184,23.620543;113.638850,23.620412;113.638433,23.620213;113.638325,23.620156;113.638329,23.620155;113.636047,23.618944;113.635544,23.618668;113.635254,23.618481;113.634750,23.618097;113.634514,23.617891;113.634254,23.617622;113.633980,23.617271;113.633636,23.616779;113.633057,23.615911;113.632957,23.615774;113.632401,23.614927;113.631912,23.614172;113.631660,23.613710;113.631432,23.613142;113.631287,23.612659;113.630905,23.611076;113.630844,23.610802;113.630844,23.610798;113.630768,23.610516;113.630661,23.610060;113.630569,23.609705;113.630554,23.609617;113.630501,23.609388;113.630119,23.607822;113.629776,23.606388;113.629395,23.604740;113.628891,23.602587;113.628479,23.600821;113.628136,23.599293;113.627968,23.598680;113.627953,23.598633;113.627884,23.598433;113.627785,23.598202;113.627632,23.597919;113.627487,23.597683;113.627281,23.597401;113.627037,23.597139;113.626106,23.596230;113.625641,23.595755;113.624992,23.595139;113.624092,23.594326;113.623161,23.593433;113.622879,23.593147;113.622734,23.592981;113.622383,23.592590;113.622055,23.592186;113.621872,23.591957;113.621574,23.591545;113.621292,23.591133;113.621117,23.590864;113.620880,23.590433;113.620735,23.590164;113.620674,23.590054;113.620673,23.590052;113.620603,23.589913;113.619475,23.587643;113.619401,23.587491;113.619401,23.587487;113.619175,23.587040;113.618984,23.586658;113.618893,23.586471;113.618598,23.585868;113.618108,23.584874;113.617930,23.584440;113.617769,23.583928;113.617708,23.583646;113.617630,23.583073;113.617582,23.582478;113.617578,23.582357;113.617578,23.582361;113.617584,23.582365;113.617584,23.582359;113.617554,23.581884;113.617485,23.580811;113.617477,23.580591;113.617485,23.580204;113.617493,23.579849;113.617554,23.579384;113.617668,23.578743;113.617760,23.578316;113.617790,23.578138;113.618042,23.576904;113.618080,23.576723;113.618095,23.576658;113.618118,23.576557;113.618187,23.576189;113.618347,23.575378;113.618416,23.574808;113.618423,23.574497;113.618408,23.574158;113.618286,23.573481;113.618263,23.573381;113.618210,23.573103;113.618210,23.573111;113.618210,23.573120;113.618210,23.573116;113.618172,23.572929;113.618080,23.572432;113.618034,23.572153;113.618011,23.571901;113.617989,23.571444;113.618034,23.570911;113.618187,23.569813;113.618332,23.568825;113.618462,23.567951;113.618652,23.566698;113.618759,23.565947;113.618790,23.565674;113.618828,23.565474;113.618843,23.565365;113.618874,23.565182;113.618896,23.565014;113.618896,23.564964;113.619118,23.563465;113.619171,23.563156;113.619263,23.562523;113.619286,23.562109;113.619263,23.561775;113.619232,23.561602;113.619171,23.561384;113.619011,23.561010;113.618790,23.560673;113.618652,23.560495;113.618149,23.559973;113.617950,23.559765;113.616966,23.558811;113.615730,23.557600;113.615547,23.557409;113.615356,23.557222;113.615105,23.556976;113.614723,23.556602;113.614052,23.555933;113.613762,23.555609;113.613365,23.555122;113.613190,23.554810;113.613129,23.554688;113.613052,23.554518;113.612823,23.554016;113.612648,23.553556;113.612625,23.553484;113.612602,23.553438;113.612549,23.553284;113.612526,23.553211;113.612526,23.553207;113.612282,23.552565;113.612068,23.551991;113.611961,23.551771;113.611816,23.551476;113.611557,23.551102;113.611328,23.550846;113.611069,23.550591;113.610443,23.550087;113.610435,23.550077;113.609962,23.549686;113.609459,23.549290;113.609207,23.549063;113.609055,23.548923;113.608841,23.548676;113.608757,23.548571;113.608536,23.548216;113.608398,23.547951;113.608315,23.547665;113.608276,23.547514;113.608231,23.547321;113.608185,23.547031;113.608154,23.546612;113.608155,23.546610;113.608121,23.546150;113.608082,23.545586;113.608077,23.545451;113.608090,23.545013;113.608142,23.544488;113.608160,23.544405;113.608290,23.543698;113.608312,23.543607;113.608398,23.543199;113.608637,23.542118;113.608750,23.541584;113.608954,23.540612;113.608971,23.540530;113.609123,23.539800;113.609323,23.538889;113.609366,23.538637;113.609414,23.538329;113.609449,23.537956;113.609466,23.537617;113.609466,23.537287;113.609444,23.536819;113.609414,23.536536;113.609332,23.536102;113.609214,23.535690;113.609214,23.535686;113.609106,23.535321;113.608980,23.534909;113.608733,23.534227;113.608234,23.532986;113.608121,23.532713;113.608008,23.532444;113.607795,23.531910;113.607682,23.531623;113.607244,23.530547;113.607122,23.530247', 'bustimetag': '0', 'start_time': '0900', 'end_time': '1800', 'via_num': '18', 'via_stops': [{'name': '卫东', 'id': '900000111141003', 'location': '113.671707,23.643766'}, {'name': '交警温泉中队', 'id': '900000111141029', 'location': '113.656944,23.630304'}, {'name': '冲口', 'id': '900000111141022', 'location': '113.649731,23.624987'}, {'name': '牛步迳', 'id': '900000111141006', 'location': '113.644640,23.621901'}, {'name': '华辉度假村', 'id': '900000111141023', 'location': '113.638325,23.620156'}, {'name': '温泉镇政府', 'id': '900000111141008', 'location': '113.632957,23.615774'}, {'name': '云星村', 'id': '900000111141024', 'location': '113.630844,23.610802'}, {'name': '宣星路口', 'id': '900000111141010', 'location': '113.628891,23.602587'}, {'name': '新华', 'id': '900000111141011', 'location': '113.620674,23.590054'}, {'name': '水底村', 'id': '900000111141012', 'location': '113.619401,23.587491'}, {'name': '南洋学院', 'id': '900000111141028', 'location': '113.617578,23.582357'}, {'name': '江埔社区', 'id': '900000111141014', 'location': '113.618210,23.573103'}, {'name': '沙塱村', 'id': '900000111141015', 'location': '113.615547,23.557409'}, {'name': '凤院北', 'id': '900000111141025', 'location': '113.612526,23.553211'}, {'name': '凤院路口', 'id': '900000111141016', 'location': '113.610443,23.550087'}, {'name': '江埔村二社', 'id': '900000111141026', 'location': '113.608154,23.546612'}, {'name': '江埔村', 'id': '900000111141018', 'location': '113.608954,23.540612'}, {'name': '迎福里', 'id': '900000111141019', 'location': '113.609214,23.535690'}]}]}, 'entrance': [], 'exit': [], 'railway': {'via_stops': [], 'alters': [], 'spaces': []}}, {'taxi': [], 'walking': {'origin': '113.607117,23.530243', 'destination': '113.607155,23.529320', 'distance': '165', 'duration': '141', 'steps': [{'instruction': '沿环市东路步行38米向右前方行走', 'road': '环市东路', 'distance': '38', 'duration': [], 'polyline': '113.607117,23.530243;113.606987,23.529930', 'action': '向右前方行走', 'assistant_action': []}, {'instruction': '步行52米左转', 'road': [], 'distance': '52', 'duration': [], 'polyline': '113.606987,23.529926;113.606705,23.529722;113.606606,23.529621', 'action': '左转', 'assistant_action': []}, {'instruction': '步行49米左转', 'road': [], 'distance': '49', 'duration': [], 'polyline': '113.606598,23.529617;113.607010,23.529379', 'action': '左转', 'assistant_action': []}, {'instruction': '步行15米向右前方行走', 'road': [], 'distance': '15', 'duration': [], 'polyline': '113.607002,23.529379;113.607132,23.529423', 'action': '向右前方行走', 'assistant_action': []}, {'instruction': '沿环市东路步行1米右转', 'road': '环市东路', 'distance': '1', 'duration': [], 'polyline': '113.607132,23.529423;113.607147,23.529423', 'action': '右转', 'assistant_action': []}, {'instruction': '沿环市东路步行11米到达城建学院总站', 'road': '环市东路', 'distance': '11', 'duration': [], 'polyline': '113.607147,23.529419;113.607162,23.529375;113.607155,23.529324;113.607155,23.529320', 'action': [], 'assistant_action': '到达城建学院总站'}]}, 'bus': {'buslines': [{'departure_stop': {'name': '城建学院总站', 'id': '440100015062002', 'location': '113.607155,23.529314'}, 'arrival_stop': {'name': '新世纪广场', 'id': '440100015062015', 'location': '113.588470,23.548191'}, 'name': '从8路(城建学院总站--地铁东风站总站)', 'id': '440100015062', 'type': '普通公交线路', 'distance': '3938', 'duration': '1616', 'polyline': '113.607155,23.529314;113.607155,23.529331;113.607163,23.529383;113.607145,23.529430;113.607085,23.529535;113.607021,23.529725;113.607063,23.529810;113.607117,23.529909;113.607254,23.530235;113.607307,23.530386;113.607468,23.530737;113.608154,23.532440;113.608360,23.532948;113.608574,23.533489;113.608833,23.534153;113.608734,23.534227;113.608452,23.534374;113.607796,23.534697;113.607567,23.534826;113.607376,23.534962;113.607376,23.534960;113.607315,23.535004;113.607162,23.535122;113.606712,23.535421;113.606392,23.535637;113.605423,23.536079;113.605103,23.536228;113.604790,23.536381;113.603958,23.536711;113.603645,23.536844;113.603646,23.536845;113.603550,23.536888;113.603090,23.537144;113.602765,23.537322;113.602370,23.537539;113.601979,23.537760;113.601714,23.537904;113.601597,23.537969;113.601220,23.538177;113.601003,23.538303;113.600547,23.538542;113.600516,23.538559;113.600187,23.538715;113.599601,23.538967;113.599149,23.539162;113.598633,23.539371;113.598620,23.539375;113.598533,23.539418;113.598442,23.539488;113.598260,23.539674;113.597908,23.540100;113.597878,23.540138;113.597794,23.540213;113.597672,23.540291;113.596863,23.540783;113.596817,23.541914;113.596725,23.542353;113.596642,23.542601;113.596443,23.543009;113.596336,23.543261;113.596237,23.543489;113.596146,23.543697;113.595947,23.544102;113.595673,23.544535;113.595543,23.544531;113.595306,23.544531;113.595016,23.544575;113.594620,23.544676;113.592140,23.545368;113.591881,23.545446;113.590782,23.546124;113.590736,23.546156;113.590034,23.546585;113.589508,23.546913;113.589523,23.546822;113.589508,23.546129;113.589500,23.545803;113.589256,23.545782;113.589119,23.545778;113.588783,23.545746;113.588623,23.545742;113.588295,23.545738;113.588013,23.545732;113.587715,23.545725;113.587662,23.546785;113.587708,23.548019;113.588341,23.548164;113.588470,23.548191', 'bustimetag': '0', 'start_time': '0650', 'end_time': '2030', 'via_num': '7', 'via_stops': [{'name': '禾仓村', 'id': '440100015062003', 'location': '113.607376,23.534962'}, {'name': '七星体育公园', 'id': '440100015062021', 'location': '113.603645,23.536844'}, {'name': '七星市场', 'id': '440100015062005', 'location': '113.600516,23.538559'}, {'name': '七星路口', 'id': '440100015062013', 'location': '113.597908,23.540100'}, {'name': '河东市场', 'id': '440100015062007', 'location': '113.596336,23.543261'}, {'name': '从化邮政局', 'id': '440100015062017', 'location': '113.590782,23.546124'}, {'name': '从化供电局', 'id': '440100015062014', 'location': '113.588013,23.545732'}]}]}, 'entrance': [], 'exit': [], 'railway': {'via_stops': [], 'alters': [], 'spaces': []}}, {'taxi': [], 'walking': {'origin': '113.588470,23.548189', 'destination': '113.588402,23.547838', 'distance': '50', 'duration': '42', 'steps': [{'instruction': '沿东成路步行13米左转', 'road': '东成路', 'distance': '13', 'duration': [], 'polyline': '113.588470,23.548189;113.588341,23.548168', 'action': '左转', 'assistant_action': []}, {'instruction': '步行37米', 'road': [], 'distance': '37', 'duration': [], 'polyline': '113.588341,23.548164;113.588379,23.547886;113.588402,23.547838', 'action': [], 'assistant_action': []}]}, 'bus': {'buslines': []}, 'entrance': [], 'exit': [], 'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]}, {'cost': '2.0', 'duration': '6375', 'nightflag': '0', 'walking_distance': '2212', 'distance': '21652', 'missed': '0', 'segments': [{'taxi': [], 'walking': {'origin': '113.679588,23.632492', 'destination': '113.675644,23.619991', 'distance': '1957', 'duration': '1677', 'steps': [{'instruction': '步行101米右转', 'road': [], 'distance': '101', 'duration': [], 'polyline': '113.679588,23.632492;113.680588,23.632523', 'action': '右转', 'assistant_action': []}, {'instruction': '步行199米向右前方行走', 'road': [], 'distance': '199', 'duration': [], 'polyline': '113.680588,23.632523;113.680641,23.632139;113.680672,23.631741;113.680634,23.631540;113.680588,23.631437;113.680496,23.631241;113.680405,23.631094;113.680206,23.630842', 'action': '向右前方行走', 'assistant_action': []}, {'instruction': '步行159米左转', 'road': [], 'distance': '159', 'duration': [], 'polyline': '113.680206,23.630838;113.680038,23.630772;113.679642,23.630638;113.679359,23.630522;113.679199,23.630472;113.679031,23.630430;113.678879,23.630404;113.678711,23.630365', 'action': '左转', 'assistant_action': []}, {'instruction': '步行237米左转', 'road': [], 'distance': '237', 'duration': [], 'polyline': '113.678711,23.630360;113.678711,23.629341;113.678711,23.629192;113.678688,23.629084;113.678635,23.629023;113.678421,23.628902;113.678368,23.628841;113.678314,23.628723;113.678291,23.628611;113.678276,23.628372', 'action': '左转', 'assistant_action': []}, {'instruction': '步行498米向右前方行走', 'road': [], 'distance': '498', 'duration': [], 'polyline': '113.678276,23.628368;113.678574,23.628338;113.678688,23.628307;113.678848,23.628233;113.679047,23.628073;113.679161,23.627964;113.679214,23.627869;113.679237,23.627777;113.679283,23.627525;113.679291,23.627321;113.679253,23.626854;113.679184,23.626623;113.679138,23.626497;113.679001,23.626259;113.678940,23.626177;113.678711,23.625977;113.678619,23.625864;113.678528,23.625721;113.678436,23.625191;113.678429,23.625057;113.678452,23.624939;113.678574,23.624657', 'action': '向右前方行走', 'assistant_action': []}, {'instruction': '步行722米左转', 'road': [], 'distance': '722', 'duration': [], 'polyline': '113.678574,23.624653;113.678558,23.624510;113.678413,23.624323;113.677582,23.623793;113.676529,23.623346;113.676361,23.623255;113.676270,23.623152;113.676109,23.622833;113.676041,23.622738;113.675789,23.622482;113.675499,23.622278;113.675415,23.622175;113.675385,23.622087;113.675377,23.621836;113.675392,23.621611;113.675430,23.621475;113.675545,23.621359;113.675766,23.621181;113.675850,23.621090;113.675903,23.620995;113.675903,23.620855;113.675880,23.620726;113.675743,23.620546;113.675598,23.620373;113.675240,23.620012', 'action': '左转', 'assistant_action': []}, {'instruction': '步行41米到达松浪社', 'road': [], 'distance': '41', 'duration': [], 'polyline': '113.675240,23.620008;113.675491,23.620012;113.675644,23.619991;113.675644,23.619991', 'action': [], 'assistant_action': '到达松浪社'}]}, 'bus': {'buslines': [{'departure_stop': {'name': '松浪社', 'id': '900000111143034', 'location': '113.675629,23.619987'}, 'arrival_stop': {'name': '新世纪广场', 'id': '900000111143016', 'location': '113.588885,23.548320'}, 'name': '从20路(乌土村委总站--从化汽车站总站)', 'id': '900000111143', 'type': '普通公交线路', 'distance': '19440', 'duration': '4479', 'polyline': '113.675629,23.619987;113.675301,23.620045;113.675201,23.619968;113.674934,23.619713;113.673920,23.618620;113.673691,23.618429;113.673454,23.618334;113.673218,23.618269;113.671082,23.617786;113.667892,23.617096;113.666336,23.616735;113.665916,23.616650;113.664551,23.616346;113.663689,23.616152;113.663544,23.616119;113.663223,23.616043;113.662567,23.615911;113.662025,23.615803;113.661682,23.615711;113.660400,23.615417;113.660004,23.615669;113.659927,23.615711;113.659088,23.616234;113.657166,23.617487;113.656975,23.617626;113.656815,23.617783;113.655830,23.618845;113.655678,23.618971;113.655548,23.619076;113.655411,23.619141;113.655281,23.619188;113.655083,23.619236;113.654747,23.619293;113.654518,23.619307;113.654320,23.619303;113.653976,23.619244;113.652885,23.619011;113.652718,23.618984;113.652573,23.618984;113.652428,23.619015;113.651825,23.619240;113.650818,23.619617;113.649361,23.619949;113.648819,23.620077;113.648354,23.620222;113.648087,23.620314;113.647858,23.620438;113.647621,23.620604;113.647377,23.620783;113.647179,23.620893;113.646973,23.620993;113.646477,23.621176;113.646317,23.621258;113.645866,23.621567;113.645721,23.621698;113.645721,23.621876;113.645821,23.622089;113.646248,23.622282;113.646629,23.622496;113.647217,23.622856;113.647697,23.623178;113.648071,23.623466;113.649094,23.624311;113.649666,23.624836;113.649811,23.624950;113.650055,23.625156;113.650192,23.625296;113.652588,23.627287;113.652748,23.627409;113.653603,23.628078;113.654411,23.628637;113.655273,23.629168;113.657509,23.630495;113.657425,23.630590;113.657120,23.630409;113.654335,23.628742;113.653847,23.628416;113.653603,23.628225;113.652382,23.627178;113.650169,23.625324;113.650017,23.625223;113.649773,23.625013;113.649742,23.624990;113.649734,23.624990;113.648926,23.624327;113.647842,23.623442;113.647362,23.623091;113.646782,23.622723;113.646347,23.622465;113.645981,23.622286;113.645592,23.622131;113.645119,23.621990;113.644714,23.621914;113.644516,23.621885;113.644521,23.621890;113.644371,23.621862;113.643257,23.621748;113.642578,23.621666;113.642471,23.621645;113.642029,23.621540;113.641449,23.621353;113.640526,23.621033;113.639336,23.620604;113.639183,23.620543;113.638855,23.620413;113.638474,23.620235;113.636047,23.618944;113.635544,23.618668;113.635254,23.618481;113.634750,23.618097;113.634514,23.617891;113.634254,23.617622;113.633980,23.617271;113.633636,23.616779;113.633057,23.615911;113.632881,23.615646;113.632401,23.614927;113.631912,23.614172;113.631660,23.613710;113.631432,23.613142;113.631287,23.612659;113.630905,23.611076;113.630844,23.610802;113.630844,23.610798;113.630768,23.610516;113.630577,23.610237;113.630516,23.610188;113.630455,23.610161;113.630257,23.610147;113.630119,23.610188;113.629410,23.610382;113.626266,23.611412;113.624924,23.611845;113.624825,23.611914;113.623993,23.612200;113.622940,23.612551;113.620605,23.613319;113.620193,23.613451;113.618462,23.614006;113.617325,23.614307;113.616829,23.614441;113.616310,23.614557;113.615623,23.614731;113.615547,23.614721;113.615829,23.613806;113.615883,23.613615;113.615837,23.613312;113.615700,23.612883;113.615692,23.612778;113.615692,23.612595;113.615700,23.612335;113.615623,23.611740;113.615601,23.611603;113.615532,23.611467;113.615410,23.611258;113.615379,23.611164;113.615349,23.610947;113.615349,23.610842;113.615372,23.610706;113.615479,23.610287;113.615486,23.610147;113.615486,23.610014;113.615395,23.609644;113.615395,23.609617;113.615395,23.609457;113.615402,23.609367;113.615456,23.609184;113.615509,23.609085;113.616081,23.608265;113.616371,23.607573;113.616409,23.607368;113.616402,23.607235;113.616371,23.607100;113.616272,23.606810;113.616158,23.606575;113.615829,23.605993;113.615562,23.605604;113.614883,23.604675;113.614601,23.604301;113.614601,23.604298;113.614388,23.604015;113.614090,23.603594;113.613861,23.603292;113.613716,23.603111;113.612968,23.602079;113.612846,23.601910;113.612610,23.601501;113.612335,23.600824;113.612335,23.600820;113.611424,23.598633;113.611029,23.597665;113.610942,23.597483;113.610833,23.597318;113.610738,23.597183;113.610239,23.596602;113.610109,23.596432;113.609592,23.595547;113.608924,23.594384;113.608841,23.594180;113.608741,23.593841;113.608663,23.593490;113.608665,23.593493;113.608665,23.593498;113.608665,23.593493;113.608139,23.591215;113.608124,23.591070;113.608032,23.590477;113.608025,23.590450;113.608025,23.590446;113.607971,23.590200;113.607903,23.589956;113.607841,23.589813;113.607712,23.589596;113.607452,23.589245;113.607239,23.588840;113.606712,23.587645;113.606400,23.586927;113.606293,23.586622;113.605988,23.585661;113.605904,23.585447;113.605820,23.585260;113.605629,23.584936;113.605354,23.584476;113.605232,23.584290;113.604759,23.583406;113.604652,23.583202;113.604584,23.582983;113.604477,23.582586;113.604095,23.580610;113.603882,23.579472;113.603661,23.578447;113.603638,23.578199;113.603630,23.577904;113.603706,23.576944;113.603737,23.576658;113.603760,23.576448;113.603867,23.576088;113.604012,23.575682;113.604042,23.575418;113.604034,23.575291;113.604012,23.575186;113.603966,23.575087;113.603897,23.574961;113.603821,23.574879;113.603645,23.574709;113.603127,23.574280;113.603125,23.574275;113.602196,23.573498;113.601892,23.573229;113.600990,23.572261;113.600872,23.572127;113.600694,23.571936;113.600625,23.571853;113.600503,23.571680;113.600434,23.571528;113.600395,23.571402;113.600378,23.571254;113.600378,23.571094;113.600443,23.570551;113.600477,23.570321;113.600521,23.570217;113.600569,23.570148;113.600816,23.569948;113.600942,23.569770;113.600894,23.568885;113.600799,23.567886;113.600799,23.567882;113.600738,23.567266;113.600694,23.566693;113.600681,23.566081;113.600703,23.565673;113.600707,23.565582;113.600773,23.564679;113.600703,23.564306;113.600651,23.564106;113.600660,23.563581;113.600751,23.562474;113.600773,23.561827;113.600799,23.561567;113.600851,23.561354;113.600916,23.561089;113.600981,23.559727;113.600981,23.558984;113.600977,23.557986;113.600977,23.556823;113.600977,23.556693;113.600959,23.555773;113.600938,23.554688;113.600924,23.554180;113.600781,23.553906;113.600760,23.552578;113.600742,23.552209;113.600734,23.551992;113.600694,23.551393;113.600621,23.551393;113.599210,23.551398;113.599149,23.551398;113.598633,23.551393;113.598372,23.551385;113.597773,23.551398;113.596658,23.551393;113.596597,23.551385;113.596202,23.551376;113.596011,23.551354;113.595807,23.551302;113.595564,23.551189;113.595321,23.551055;113.595269,23.551020;113.595004,23.550864;113.594705,23.550690;113.594440,23.550525;113.593989,23.550256;113.593733,23.550113;113.593503,23.549965;113.593437,23.549922;113.593216,23.549757;113.592995,23.549466;113.592908,23.549110;113.592847,23.548624;113.592826,23.548268;113.592817,23.548160;113.592819,23.548161;113.592781,23.547560;113.592644,23.547079;113.592552,23.546762;113.592552,23.546766;113.592552,23.546762;113.592522,23.546671;113.592415,23.546415;113.592346,23.546280;113.591393,23.547153;113.591110,23.547373;113.590714,23.547590;113.590712,23.547591;113.590595,23.547652;113.590430,23.547747;113.590095,23.547930;113.589549,23.548238;113.589193,23.548307;113.588885,23.548320', 'bustimetag': '0', 'start_time': '0830', 'end_time': '1900', 'via_num': '19', 'via_stops': [{'name': '源湖村五社', 'id': '900000111143035', 'location': '113.663689,23.616152'}, {'name': '源湖村', 'id': '900000111143036', 'location': '113.659927,23.615711'}, {'name': '温泉交警中队', 'id': '900000111143003', 'location': '113.657120,23.630409'}, {'name': '冲口', 'id': '900000111143031', 'location': '113.649742,23.624990'}, {'name': '牛步迳', 'id': '900000111143004', 'location': '113.644516,23.621885'}, {'name': '温泉镇政府', 'id': '900000111143005', 'location': '113.632881,23.615646'}, {'name': '云星村站', 'id': '900000111143032', 'location': '113.630844,23.610802'}, {'name': '麻三村委', 'id': '900000111143006', 'location': '113.615532,23.611467'}, {'name': '麻二村委', 'id': '900000111143007', 'location': '113.614601,23.604301'}, {'name': '麻一木棉站', 'id': '900000111143037', 'location': '113.612335,23.600824'}, {'name': '沙洲', 'id': '900000111143027', 'location': '113.608663,23.593490'}, {'name': '塘下村十社', 'id': '900000111143028', 'location': '113.608025,23.590450'}, {'name': '塘下村委', 'id': '900000111143008', 'location': '113.605354,23.584476'}, {'name': '东风村委', 'id': '900000111143029', 'location': '113.603127,23.574280'}, {'name': '地铁东风站', 'id': '900000111143009', 'location': '113.600799,23.567886'}, {'name': '从化政务服务中心', 'id': '900000111143012', 'location': '113.594440,23.550525'}, {'name': '从化博物馆', 'id': '900000111143013', 'location': '113.592817,23.548160'}, {'name': '河堤广场', 'id': '900000111143014', 'location': '113.592552,23.546762'}, {'name': '河滨公园', 'id': '900000111143015', 'location': '113.590714,23.547590'}]}]}, 'entrance': [], 'exit': [], 'railway': {'via_stops': [], 'alters': [], 'spaces': []}}, {'taxi': [], 'walking': {'origin': '113.588799,23.548315', 'destination': '113.588623,23.547464', 'distance': '255', 'duration': '218', 'steps': [{'instruction': '沿东成路步行126米左转', 'road': '东成路', 'distance': '126', 'duration': [], 'polyline': '113.588799,23.548315;113.588615,23.548298;113.588364,23.548260;113.587570,23.548120', 'action': '左转', 'assistant_action': []}, {'instruction': '沿新城东路步行129米', 'road': '新城东路', 'distance': '129', 'duration': [], 'polyline': '113.587570,23.548117;113.587708,23.548025;113.588623,23.547464', 'action': [], 'assistant_action': []}]}, 'bus': {'buslines': []}, 'entrance': [], 'exit': [], 'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]}]}}\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>status</th>\n",
       "      <th>info</th>\n",
       "      <th>infocode</th>\n",
       "      <th>count</th>\n",
       "      <th>route.origin</th>\n",
       "      <th>route.destination</th>\n",
       "      <th>route.distance</th>\n",
       "      <th>route.taxi_cost</th>\n",
       "      <th>route.transits</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>OK</td>\n",
       "      <td>10000</td>\n",
       "      <td>4</td>\n",
       "      <td>113.679287,23.632575</td>\n",
       "      <td>113.588823,23.547738</td>\n",
       "      <td>17060</td>\n",
       "      <td>47</td>\n",
       "      <td>[{'cost': [], 'duration': '4939', 'nightflag':...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  status info infocode count          route.origin     route.destination  \\\n",
       "0      1   OK    10000     4  113.679287,23.632575  113.588823,23.547738   \n",
       "\n",
       "  route.distance route.taxi_cost  \\\n",
       "0          17060              47   \n",
       "\n",
       "                                      route.transits  \n",
       "0  [{'cost': [], 'duration': '4939', 'nightflag':...  "
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# C-1\n",
    "def integrated(origin,destination,city,cityd=None,extensions='base',strategy=None,nightflag=0,date=None,time=None,sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/direction/transit/integrated?parameters'\n",
    "    params={\n",
    "        'key':key_jn,\n",
    "        'origin':origin,\n",
    "        'destination':destination,\n",
    "        'city':city,\n",
    "        'cityd':cityd,\n",
    "        'extensions':extensions,\n",
    "        'strategy':strategy,\n",
    "        'nightflag':nightflag,\n",
    "        'date':date,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data\n",
    "\n",
    "# C-2 准备参数\n",
    "中大南方 = geocode('广东省广州市从化区中山大学南方学院')\n",
    "中大南方_location = 中大南方['geocodes'][0]['location']\n",
    "从化客运站 = geocode('广东省广州市从化客运站')\n",
    "从化客运站_location = 从化客运站['geocodes'][0]['location']\n",
    "print(\"(起点)中大南方_location:\",中大南方_location,\"(终点)从化客运站_location:\",从化客运站_location)\n",
    "\n",
    "# C-3 公交路径规划\n",
    "中大南方_从化客运站 = integrated(中大南方_location,从化客运站_location,city='广州',extensions='all')\n",
    "print(中大南方_从化客运站)\n",
    "df_bus = pd.json_normalize(中大南方_从化客运站)\n",
    "df_bus"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 行政区域查询\n",
    "[行政区域查询](https://lbs.amap.com/api/webservice/guide/api/district)\n",
    "### 该功能的产品应用方案或场景：\n",
    "* 通过得到行政区域信息，进行开发工作。\n",
    "* 例如：将广州市的行政区域级别进行划分。  \n",
    "*在使用前，需要特别说明两点：   \n",
    "1、目前部分城市和省直辖县因为没有区县的概念，故在市级下方直接显示街道。例如：广东-东莞、海南-文昌市。   \n",
    "2、街道级别是不能返回边界数据polyline的，乡镇街道级别返回的adcode是所属区县的adcode。   \n",
    "3、暂时不支持台湾省的详细区划查询。*\n",
    "* 必要参数：key\n",
    "* 可选参数：keywords，subdistrict，page，offset，extensions，filter，callback，output"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>citycode</th>\n",
       "      <th>adcode</th>\n",
       "      <th>name</th>\n",
       "      <th>center</th>\n",
       "      <th>level</th>\n",
       "      <th>districts</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>020</td>\n",
       "      <td>440111</td>\n",
       "      <td>同德街道</td>\n",
       "      <td>113.244,23.1719</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>020</td>\n",
       "      <td>440111</td>\n",
       "      <td>松洲街道</td>\n",
       "      <td>113.236,23.1838</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>020</td>\n",
       "      <td>440111</td>\n",
       "      <td>同和街道</td>\n",
       "      <td>113.286,23.1816</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>020</td>\n",
       "      <td>440111</td>\n",
       "      <td>人和镇</td>\n",
       "      <td>113.3,23.3826</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>020</td>\n",
       "      <td>440111</td>\n",
       "      <td>太和镇</td>\n",
       "      <td>113.351,23.3185</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>020</td>\n",
       "      <td>440111</td>\n",
       "      <td>景泰街道</td>\n",
       "      <td>113.288,23.1748</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>020</td>\n",
       "      <td>440111</td>\n",
       "      <td>均禾街道</td>\n",
       "      <td>113.243,23.2689</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>020</td>\n",
       "      <td>440111</td>\n",
       "      <td>永平街道</td>\n",
       "      <td>113.326,23.2307</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>020</td>\n",
       "      <td>440111</td>\n",
       "      <td>江高镇</td>\n",
       "      <td>113.259,23.3312</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>020</td>\n",
       "      <td>440111</td>\n",
       "      <td>黄石街道</td>\n",
       "      <td>113.297,23.211</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>020</td>\n",
       "      <td>440111</td>\n",
       "      <td>金沙街道</td>\n",
       "      <td>113.187,23.1479</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>020</td>\n",
       "      <td>440111</td>\n",
       "      <td>三元里街道</td>\n",
       "      <td>113.257,23.1786</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>020</td>\n",
       "      <td>440111</td>\n",
       "      <td>钟落潭镇</td>\n",
       "      <td>113.509,23.3031</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>020</td>\n",
       "      <td>440111</td>\n",
       "      <td>新市街道</td>\n",
       "      <td>113.268,23.2013</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>020</td>\n",
       "      <td>440111</td>\n",
       "      <td>石井街道</td>\n",
       "      <td>113.213,23.2155</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>020</td>\n",
       "      <td>440111</td>\n",
       "      <td>棠景街道</td>\n",
       "      <td>113.26,23.1863</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>020</td>\n",
       "      <td>440111</td>\n",
       "      <td>京溪街道</td>\n",
       "      <td>113.35,23.2162</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>020</td>\n",
       "      <td>440111</td>\n",
       "      <td>石门街道</td>\n",
       "      <td>113.178,23.2247</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>020</td>\n",
       "      <td>440111</td>\n",
       "      <td>白云湖街道</td>\n",
       "      <td>113.246,23.2581</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>020</td>\n",
       "      <td>440111</td>\n",
       "      <td>鹤龙街道</td>\n",
       "      <td>113.263,23.2124</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>020</td>\n",
       "      <td>440111</td>\n",
       "      <td>嘉禾街道</td>\n",
       "      <td>113.306,23.2672</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   citycode  adcode   name           center   level districts\n",
       "0       020  440111   同德街道  113.244,23.1719  street        []\n",
       "1       020  440111   松洲街道  113.236,23.1838  street        []\n",
       "2       020  440111   同和街道  113.286,23.1816  street        []\n",
       "3       020  440111    人和镇    113.3,23.3826  street        []\n",
       "4       020  440111    太和镇  113.351,23.3185  street        []\n",
       "5       020  440111   景泰街道  113.288,23.1748  street        []\n",
       "6       020  440111   均禾街道  113.243,23.2689  street        []\n",
       "7       020  440111   永平街道  113.326,23.2307  street        []\n",
       "8       020  440111    江高镇  113.259,23.3312  street        []\n",
       "9       020  440111   黄石街道   113.297,23.211  street        []\n",
       "10      020  440111   金沙街道  113.187,23.1479  street        []\n",
       "11      020  440111  三元里街道  113.257,23.1786  street        []\n",
       "12      020  440111   钟落潭镇  113.509,23.3031  street        []\n",
       "13      020  440111   新市街道  113.268,23.2013  street        []\n",
       "14      020  440111   石井街道  113.213,23.2155  street        []\n",
       "15      020  440111   棠景街道   113.26,23.1863  street        []\n",
       "16      020  440111   京溪街道   113.35,23.2162  street        []\n",
       "17      020  440111   石门街道  113.178,23.2247  street        []\n",
       "18      020  440111  白云湖街道  113.246,23.2581  street        []\n",
       "19      020  440111   鹤龙街道  113.263,23.2124  street        []\n",
       "20      020  440111   嘉禾街道  113.306,23.2672  street        []"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# D-1 请注意行政区域级别划分参数\n",
    "def district(keywords,subdistrict=None,page=None,offset=None,extensions='base',filter=None,)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/config/district?parameters'\n",
    "    params={\n",
    "        'key':key_jn,\n",
    "        'keywords':keywords,\n",
    "        'subdistrict':subdistrict,\n",
    "        'page':page,\n",
    "        'offset':offset,\n",
    "        'extensions':extensions,\n",
    "        'filter':filter,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data\n",
    "行政区域 = district(keywords='广州市',extensions='base',subdistrict=3)\n",
    "行政区域\n",
    "df_行政区域_1级 = pd.json_normalize(行政区域[\"districts\"][0]['districts'])\n",
    "df_行政区域_1级\n",
    "df_行政区域_2级_广州市 = pd.json_normalize(行政区域[\"districts\"][0]['districts'][3]['districts'])\n",
    "df_行政区域_2级_广州市\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 搜索POI\n",
    "[搜索POI文档](https://lbs.amap.com/api/webservice/guide/api/search)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 关键字搜索\n",
    "#### 该功能的产品应用方案或场景：\n",
    "* 通过用POI的关键字进行条件搜索，例如：肯德基、麦当劳等；同时支持设置POI类型搜索，例如：中学，就可以搜出很多个中学咯！\n",
    "* 必要参数：key，keywords，types(keywords和types两者至少必选其一)\n",
    "* 可选参数：city，citylimit，children，offset，page，extensions，sig，output，callback"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [],
   "source": [
    "# E-1\n",
    "def place_text(keywords,types,city=None,citylimit=None,children=None,page=None,extensions='base',sig=None)->dict:\n",
    "    \"\"\"关键字搜索\"\"\"\n",
    "    url = 'https://restapi.amap.com/v3/place/text?parameters'\n",
    "    params={\n",
    "        'key':key_jn,\n",
    "        'keywords':keywords,\n",
    "        'types':types,\n",
    "        'city':city,\n",
    "        'citylimit':citylimit,\n",
    "        'children':children,\n",
    "        'page':page,\n",
    "        'extensions':extensions,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'suggestion': {'keywords': [], 'cities': []}, 'count': '674', 'infocode': '10000', 'pois': [{'parent': [], 'distance': [], 'pcode': '440000', 'importance': [], 'biz_ext': {'cost': [], 'rating': '3.0'}, 'recommend': '0', 'type': '科教文化服务;学校;中学', 'photos': [{'title': '外景图', 'url': 'http://store.is.autonavi.com/showpic/34e34ba69c103a27d1645a380707e1cd'}, {'title': [], 'url': 'http://store.is.autonavi.com/showpic/44d311afe3fe5d2d5320c9d9e2fd9e9e'}, {'title': [], 'url': 'http://store.is.autonavi.com/showpic/41861db12a9dd47deac04a85ee1db05a'}], 'discount_num': '0', 'gridcode': '3413332000', 'typecode': '141202', 'shopinfo': '0', 'poiweight': [], 'citycode': '020', 'adname': '番禺区', 'children': [], 'alias': [], 'tel': '020-84643270', 'id': 'B00140UFSS', 'tag': [], 'event': [], 'entr_location': '113.374501,22.933813', 'indoor_map': '0', 'email': [], 'timestamp': '2020-11-14 02:34:16', 'website': [], 'address': '街德胜路152号', 'adcode': '440113', 'pname': '广东省', 'biz_type': [], 'cityname': '广州市', 'postcode': [], 'match': '0', 'business_area': '市桥', 'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []}, 'childtype': [], 'exit_location': [], 'name': '东风中学', 'location': '113.375212,22.933892', 'shopid': [], 'navi_poiid': 'F49F013043_126121', 'groupbuy_num': '0'}, {'parent': [], 'distance': [], 'pcode': '440000', 'importance': [], 'biz_ext': {'cost': [], 'rating': '3.0'}, 'recommend': '0', 'type': '科教文化服务;学校;中学', 'photos': [{'title': [], 'url': 'http://store.is.autonavi.com/showpic/0523039b5a1d310f4450173d76d1c7a4'}], 'discount_num': '0', 'gridcode': '3513052021', 'typecode': '141202', 'shopinfo': '0', 'poiweight': [], 'citycode': '020', 'adname': '增城区', 'children': [], 'alias': [], 'tel': '020-82831262', 'id': 'B00140W3VK', 'tag': [], 'event': [], 'entr_location': '113.632638,23.357687', 'indoor_map': '0', 'email': [], 'timestamp': '2020-11-14 07:54:22', 'website': [], 'address': '广东省广州市增城区中新镇福和月芳路77号', 'adcode': '440118', 'pname': '广东省', 'biz_type': [], 'cityname': '广州市', 'postcode': [], 'match': '0', 'business_area': '福和', 'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []}, 'childtype': [], 'exit_location': [], 'name': '福和中学', 'location': '113.63116,23.357134', 'shopid': [], 'navi_poiid': 'F49F008046_34', 'groupbuy_num': '0'}, {'parent': [], 'distance': [], 'pcode': '440000', 'importance': [], 'biz_ext': {'cost': [], 'rating': '4.5'}, 'recommend': '0', 'type': '科教文化服务;学校;中学', 'photos': [{'title': [], 'url': 'http://store.is.autonavi.com/showpic/49c29c71b789e1c08c727e9b5a2a830b'}, {'title': [], 'url': 'http://store.is.autonavi.com/showpic/5625ff20a3102670a3614cf7'}, {'title': '外景图', 'url': 'http://store.is.autonavi.com/showpic/8a64a9d768b95c529275c59e155c2ad6'}], 'discount_num': '0', 'gridcode': '3413525511', 'typecode': '141202', 'shopinfo': '0', 'poiweight': [], 'citycode': '020', 'adname': '天河区', 'children': [], 'alias': [], 'tel': '020-85597709', 'id': 'B00140CHQG', 'tag': [], 'event': [], 'entr_location': '113.320171,23.128974', 'indoor_map': '0', 'email': [], 'timestamp': '2020-11-08 21:16:10', 'website': [], 'address': '天荣路3号', 'adcode': '440106', 'pname': '广东省', 'biz_type': [], 'cityname': '广州市', 'postcode': [], 'match': '0', 'business_area': [], 'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []}, 'childtype': [], 'exit_location': [], 'name': '天荣中学', 'location': '113.320198,23.129441', 'shopid': [], 'navi_poiid': [], 'groupbuy_num': '0'}, {'parent': [], 'distance': [], 'pcode': '440000', 'importance': [], 'biz_ext': {'cost': [], 'rating': '3.0'}, 'recommend': '0', 'type': '科教文化服务;学校;中学', 'photos': [{'title': [], 'url': 'http://store.is.autonavi.com/showpic/eca1747a178a0836b518cf059bc052d4'}, {'title': [], 'url': 'http://store.is.autonavi.com/showpic/55b5c8b5a31058fe016c12a2'}, {'title': '外景图', 'url': 'http://store.is.autonavi.com/showpic/37b5a62f0afb526a2376ad6ea28a3202'}], 'discount_num': '0', 'gridcode': '3413623512', 'typecode': '141202', 'shopinfo': '0', 'poiweight': [], 'citycode': '020', 'adname': '白云区', 'children': [], 'alias': [], 'tel': '020-37356094;020-37356080', 'id': 'B00140UF0I', 'tag': [], 'event': [], 'entr_location': '113.324524,23.194816', 'indoor_map': '0', 'email': [], 'timestamp': '2020-11-13 03:31:07', 'website': [], 'address': '握山南二路南5号', 'adcode': '440111', 'pname': '广东省', 'biz_type': [], 'cityname': '广州市', 'postcode': [], 'match': '0', 'business_area': [], 'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []}, 'childtype': [], 'exit_location': [], 'name': '同和中学', 'location': '113.323519,23.194831', 'shopid': [], 'navi_poiid': 'F49F010043_71998', 'groupbuy_num': '0'}, {'parent': [], 'distance': [], 'pcode': '440000', 'importance': [], 'biz_ext': {'cost': [], 'rating': '4.5'}, 'recommend': '0', 'type': '科教文化服务;学校;中学', 'photos': [{'title': '外景图', 'url': 'http://store.is.autonavi.com/showpic/3075b64447ec890401ccd1b23ca54498'}, {'title': '外景图', 'url': 'http://store.is.autonavi.com/showpic/d26b463c8b9305ee5149d128ba892948'}, {'title': [], 'url': 'http://store.is.autonavi.com/showpic/55b5b544a31058fe016ae816'}], 'discount_num': '0', 'gridcode': '3413324900', 'typecode': '141202', 'shopinfo': '0', 'poiweight': [], 'citycode': '020', 'adname': '番禺区', 'children': [], 'alias': [], 'tel': '020-84669190;020-84806390', 'id': 'B001402F60', 'tag': [], 'event': [], 'entr_location': '113.362136,22.952983', 'indoor_map': '0', 'email': [], 'timestamp': '2020-11-07 17:46:18', 'website': [], 'address': '光明北路232', 'adcode': '440113', 'pname': '广东省', 'biz_type': [], 'cityname': '广州市', 'postcode': [], 'match': '0', 'business_area': '市桥', 'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []}, 'childtype': [], 'exit_location': [], 'name': '星海中学', 'location': '113.362869,22.952392', 'shopid': [], 'navi_poiid': 'F49F013043_88503', 'groupbuy_num': '0'}, {'parent': [], 'distance': [], 'pcode': '440000', 'importance': [], 'biz_ext': {'cost': [], 'rating': '3.0'}, 'recommend': '0', 'type': '科教文化服务;学校;中学', 'photos': [{'title': [], 'url': 'http://store.is.autonavi.com/showpic/1d7231f50c2946c20f198781cc623a12'}, {'title': [], 'url': 'http://store.is.autonavi.com/showpic/dce396b08e13e45587101dc294a6f650'}, {'title': [], 'url': 'http://store.is.autonavi.com/showpic/3b56ca4419e9b34710a07b71d16f141b'}], 'discount_num': '0', 'gridcode': '3513120722', 'typecode': '141202', 'shopinfo': '0', 'poiweight': [], 'citycode': '020', 'adname': '花都区', 'children': [], 'alias': [], 'tel': [], 'id': 'B00140TQUE', 'tag': [], 'event': [], 'entr_location': '113.348301,23.422356', 'indoor_map': '0', 'email': [], 'timestamp': '2020-11-08 04:32:11', 'website': [], 'address': '花东镇', 'adcode': '440114', 'pname': '广东省', 'biz_type': [], 'cityname': '广州市', 'postcode': [], 'match': '0', 'business_area': '花东', 'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []}, 'childtype': [], 'exit_location': [], 'name': '大塘中学', 'location': '113.348445,23.424031', 'shopid': [], 'navi_poiid': 'F49F007043_102', 'groupbuy_num': '0'}, {'parent': 'B00141RASQ', 'distance': [], 'pcode': '440000', 'importance': [], 'biz_ext': {'cost': [], 'rating': '4.0'}, 'recommend': '0', 'type': '科教文化服务;学校;中学', 'photos': [{'title': '内景图', 'url': 'http://store.is.autonavi.com/showpic/6f90676f56875414e9eb7c566822f319'}, {'title': '外景图', 'url': 'http://store.is.autonavi.com/showpic/7a2a65c846bc844df2822bc362e99c70'}, {'title': '外景图', 'url': 'http://store.is.autonavi.com/showpic/e8551630e31f3ac6cbf4a15ea161261f'}], 'discount_num': '0', 'gridcode': '3413520222', 'typecode': '141202', 'shopinfo': '0', 'poiweight': [], 'citycode': '020', 'adname': '海珠区', 'children': [], 'alias': '九十七中|九十七中学', 'tel': '020-84275018', 'id': 'B001402580', 'tag': [], 'event': [], 'entr_location': '113.284965,23.089366', 'indoor_map': '0', 'email': [], 'timestamp': '2020-11-07 19:11:20', 'website': [], 'address': '晓港中马路133号', 'adcode': '440105', 'pname': '广东省', 'biz_type': [], 'cityname': '广州市', 'postcode': [], 'match': '0', 'business_area': '江南中', 'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []}, 'childtype': '0', 'exit_location': [], 'name': '广州市第九十七中学', 'location': '113.285307,23.089539', 'shopid': [], 'navi_poiid': 'F49F011043_44865', 'groupbuy_num': '0'}, {'parent': [], 'distance': [], 'pcode': '440000', 'importance': [], 'biz_ext': {'cost': [], 'rating': '3.0'}, 'recommend': '0', 'type': '科教文化服务;学校;中学', 'photos': [{'title': '内景图', 'url': 'http://store.is.autonavi.com/showpic/2787d89410ecff51f6ed61f02d0ef10a'}, {'title': '内景图', 'url': 'http://store.is.autonavi.com/showpic/ad74560449fd96a2706c8375d9eb1c30'}, {'title': '内景图', 'url': 'http://store.is.autonavi.com/showpic/3cc93362aa4dbe04c6facb1c10d3e0d0'}], 'discount_num': '0', 'gridcode': '3413764810', 'typecode': '141202', 'shopinfo': '0', 'poiweight': [], 'citycode': '020', 'adname': '增城区', 'children': [], 'alias': [], 'tel': '020-82712601;020-82721816', 'id': 'B00140NZD9', 'tag': [], 'event': [], 'entr_location': '113.851938,23.288773', 'indoor_map': '0', 'email': [], 'timestamp': '2020-11-14 00:36:31', 'website': [], 'address': '增江街梅花路10号', 'adcode': '440118', 'pname': '广东省', 'biz_type': [], 'cityname': '广州市', 'postcode': [], 'match': '0', 'business_area': [], 'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []}, 'childtype': [], 'exit_location': [], 'name': '增城高级中学', 'location': '113.852651,23.287645', 'shopid': [], 'navi_poiid': 'F49F009047_325', 'groupbuy_num': '0'}, {'parent': [], 'distance': [], 'pcode': '440000', 'importance': [], 'biz_ext': {'cost': [], 'rating': '3.0'}, 'recommend': '0', 'type': '科教文化服务;学校;中学', 'photos': [{'title': '门头照', 'url': 'http://store.is.autonavi.com/showpic/1e2700cc521c456c2510d9eb8660134b'}, {'title': '门头照', 'url': 'http://store.is.autonavi.com/showpic/747801edda74e3bec597d9ace2f75403'}, {'title': [], 'url': 'http://store.is.autonavi.com/showpic/541f9466c4020e5aa98bc8a84e4d1543'}], 'discount_num': '0', 'gridcode': '3413420320', 'typecode': '141202', 'shopinfo': '0', 'poiweight': [], 'citycode': '020', 'adname': '番禺区', 'children': [], 'alias': '会江学校', 'tel': '020-34782122', 'id': 'B00140W50P', 'tag': [], 'event': [], 'entr_location': '113.292200,23.007741', 'indoor_map': '0', 'email': [], 'timestamp': '2020-11-13 18:32:21', 'website': [], 'address': '大石镇江工业园石中二路101号', 'adcode': '440113', 'pname': '广东省', 'biz_type': [], 'cityname': '广州市', 'postcode': [], 'match': '0', 'business_area': '大石', 'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []}, 'childtype': [], 'exit_location': [], 'name': '会江实验学校', 'location': '113.291613,23.007627', 'shopid': [], 'navi_poiid': 'F49F012043_352256', 'groupbuy_num': '0'}, {'parent': [], 'distance': [], 'pcode': '440000', 'importance': [], 'biz_ext': {'cost': [], 'rating': '3.0'}, 'recommend': '0', 'type': '科教文化服务;学校;中学', 'photos': [{'title': [], 'url': 'http://store.is.autonavi.com/showpic/6fcd092bd37acd085e7878e6fb9884ea'}, {'title': [], 'url': 'http://store.is.autonavi.com/showpic/8df7199298ebfef30eccad51b3c8e142'}, {'title': '门头照', 'url': 'http://store.is.autonavi.com/showpic/a65aff18bfe2a25164f2a7852ba0c9f8'}], 'discount_num': '0', 'gridcode': '3413520310', 'typecode': '141202', 'shopinfo': '0', 'poiweight': [], 'citycode': '020', 'adname': '海珠区', 'children': [], 'alias': [], 'tel': '020-34306262', 'id': 'B00140UFTH', 'tag': [], 'event': [], 'entr_location': '113.290514,23.086335', 'indoor_map': '0', 'email': [], 'timestamp': '2020-11-14 04:02:37', 'website': [], 'address': '凤岗路10号', 'adcode': '440105', 'pname': '广东省', 'biz_type': [], 'cityname': '广州市', 'postcode': [], 'match': '0', 'business_area': '凤阳', 'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []}, 'childtype': [], 'exit_location': [], 'name': '春晖学校', 'location': '113.290144,23.086162', 'shopid': [], 'navi_poiid': 'F49F011043_44630', 'groupbuy_num': '0'}, {'parent': [], 'distance': [], 'pcode': '440000', 'importance': [], 'biz_ext': {'cost': [], 'rating': '3.5'}, 'recommend': '0', 'type': '科教文化服务;学校;中学', 'photos': [{'title': [], 'url': 'http://store.is.autonavi.com/showpic/ed3b5b0c1d799b8e4635c01b414917c6'}, {'title': [], 'url': 'http://store.is.autonavi.com/showpic/dfb2324dda19b75f7c963b05e2442c06'}], 'discount_num': '0', 'gridcode': '3513015602', 'typecode': '141202', 'shopinfo': '0', 'poiweight': [], 'citycode': '020', 'adname': '花都区', 'children': [], 'alias': [], 'tel': '020-86825854;020-86832928', 'id': 'B00140695F', 'tag': [], 'event': [], 'entr_location': '113.211722,23.376686', 'indoor_map': '0', 'email': [], 'timestamp': '2020-11-09 09:09:23', 'website': [], 'address': '商业大道35号', 'adcode': '440114', 'pname': '广东省', 'biz_type': [], 'cityname': '广州市', 'postcode': [], 'match': '0', 'business_area': [], 'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []}, 'childtype': [], 'exit_location': [], 'name': '广州市花都区实验中学', 'location': '113.210511,23.377327', 'shopid': [], 'navi_poiid': 'F49F008042_231295;164145', 'groupbuy_num': '0'}, {'parent': 'B0FFIGLX5N', 'distance': [], 'pcode': '440000', 'importance': [], 'biz_ext': {'cost': [], 'rating': '4.5'}, 'recommend': '0', 'type': '科教文化服务;学校;中学', 'photos': [{'title': [], 'url': 'http://store.is.autonavi.com/showpic/4369e6afb1b6d899e6715a677be6f8b3'}, {'title': [], 'url': 'http://store.is.autonavi.com/showpic/c5dc361f2c883cc85e310acc631ffbf2'}, {'title': [], 'url': 'http://store.is.autonavi.com/showpic/ce9eb89e67e19282e4511740346fd99b'}], 'discount_num': '0', 'gridcode': '3413521300', 'typecode': '141202', 'shopinfo': '0', 'poiweight': [], 'citycode': '020', 'adname': '海珠区', 'children': [], 'alias': [], 'tel': '020-84111793;020-84037714', 'id': 'B00140V07R', 'tag': [], 'event': [], 'entr_location': '113.29159,23.09377', 'indoor_map': '0', 'email': [], 'timestamp': '2020-11-13 13:10:53', 'website': [], 'address': '新港西路135号', 'adcode': '440105', 'pname': '广东省', 'biz_type': [], 'cityname': '广州市', 'postcode': [], 'match': '0', 'business_area': '新港', 'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []}, 'childtype': '309', 'exit_location': [], 'name': '中山大学附属中学', 'location': '113.29102,23.093801', 'shopid': [], 'navi_poiid': 'F49F011043_71012;71011', 'groupbuy_num': '0'}, {'parent': [], 'distance': [], 'pcode': '440000', 'importance': [], 'biz_ext': {'cost': [], 'rating': '3.0'}, 'recommend': '0', 'type': '科教文化服务;学校;中学', 'photos': [{'title': [], 'url': 'http://store.is.autonavi.com/showpic/6e7166c6a1d4602de18a445032ed1ae3'}], 'discount_num': '0', 'gridcode': '3513115221', 'typecode': '141202', 'shopinfo': '0', 'poiweight': [], 'citycode': '020', 'adname': '花都区', 'children': [], 'alias': [], 'tel': '020-86845485', 'id': 'B00140NYOO', 'tag': [], 'event': [], 'entr_location': '113.157778,23.462841', 'indoor_map': '0', 'email': [], 'timestamp': '2020-11-10 02:26:24', 'website': [], 'address': '狮岭镇康政西路11号', 'adcode': '440114', 'pname': '广东省', 'biz_type': [], 'cityname': '广州市', 'postcode': [], 'match': '0', 'business_area': '狮岭', 'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []}, 'childtype': [], 'exit_location': [], 'name': '广州市花都区狮岭中学', 'location': '113.15763,23.464562', 'shopid': [], 'navi_poiid': 'F49F007042_6526', 'groupbuy_num': '0'}, {'parent': [], 'distance': [], 'pcode': '440000', 'importance': [], 'biz_ext': {'cost': [], 'rating': '5.0'}, 'recommend': '0', 'type': '科教文化服务;学校;中学', 'photos': [{'title': [], 'url': 'http://store.is.autonavi.com/showpic/23eaf5a9b47c119a707d8bb8b7706fcf'}, {'title': [], 'url': 'http://store.is.autonavi.com/showpic/073bdb93e4ef7d89d309e58cc50c9ec1'}, {'title': '外景图', 'url': 'http://store.is.autonavi.com/showpic/05460183e7868ef6696668081851f0c3'}], 'discount_num': '0', 'gridcode': '3513017810', 'typecode': '141202', 'shopinfo': '0', 'poiweight': [], 'citycode': '020', 'adname': '花都区', 'children': [], 'alias': [], 'tel': '020-36805296;020-36805147', 'id': 'B00140UGAG', 'tag': [], 'event': [], 'entr_location': '113.228878,23.397268', 'indoor_map': '0', 'email': [], 'timestamp': '2020-11-08 02:27:46', 'website': [], 'address': '龙珠路26号', 'adcode': '440114', 'pname': '广东省', 'biz_type': [], 'cityname': '广州市', 'postcode': [], 'match': '0', 'business_area': [], 'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []}, 'childtype': [], 'exit_location': [], 'name': '云山学校', 'location': '113.229068,23.396533', 'shopid': [], 'navi_poiid': 'F49F008042_43659', 'groupbuy_num': '0'}, {'parent': [], 'distance': [], 'pcode': '440000', 'importance': [], 'biz_ext': {'cost': [], 'rating': '4.0'}, 'recommend': '0', 'type': '科教文化服务;学校;中学', 'photos': [{'title': [], 'url': 'http://store.is.autonavi.com/showpic/b41022a775df9e008037a2c6ef18e129'}, {'title': [], 'url': 'http://aos-cdn-image.amap.com/sns/ugccomment/176347f3-6080-4f27-96e7-d76480bd2de2.jpg'}, {'title': [], 'url': 'http://aos-cdn-image.amap.com/sns/ugccomment/5c597f10-5b32-43d5-a44d-be1f6e073a31.jpg'}], 'discount_num': '0', 'gridcode': '3413763821', 'typecode': '141202', 'shopinfo': '0', 'poiweight': [], 'citycode': '020', 'adname': '增城区', 'children': [], 'alias': [], 'tel': '020-82725100', 'id': 'B00140NZDN', 'tag': [], 'event': [], 'entr_location': '113.853298,23.280936', 'indoor_map': '0', 'email': [], 'timestamp': '2020-11-10 09:36:24', 'website': [], 'address': '荔城镇增江街东桥东路43号', 'adcode': '440118', 'pname': '广东省', 'biz_type': [], 'cityname': '广州市', 'postcode': [], 'match': '0', 'business_area': '荔城', 'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []}, 'childtype': [], 'exit_location': [], 'name': '荔城中学', 'location': '113.854174,23.282078', 'shopid': [], 'navi_poiid': 'F49F009047_127301', 'groupbuy_num': '0'}, {'parent': [], 'distance': [], 'pcode': '440000', 'importance': [], 'biz_ext': {'cost': [], 'rating': '3.0'}, 'recommend': '0', 'type': '科教文化服务;学校;中学', 'photos': [{'title': [], 'url': 'http://store.is.autonavi.com/showpic/c7b42eff6d03ad14700bc7486ae5415c'}, {'title': [], 'url': 'http://store.is.autonavi.com/showpic/55b5b71da31058fe016b4669'}, {'title': [], 'url': 'http://store.is.autonavi.com/showpic/55b5b71da31058fe016b4665'}], 'discount_num': '0', 'gridcode': '3513245610', 'typecode': '141202', 'shopinfo': '0', 'poiweight': [], 'citycode': '020', 'adname': '从化区', 'children': [], 'alias': [], 'tel': '020-87910732', 'id': 'B00140NY8K', 'tag': [], 'event': [], 'entr_location': '113.574561,23.547798', 'indoor_map': '0', 'email': [], 'timestamp': '2020-11-08 08:59:34', 'website': [], 'address': '环城路239号', 'adcode': '440117', 'pname': '广东省', 'biz_type': [], 'cityname': '广州市', 'postcode': [], 'match': '0', 'business_area': '街口', 'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []}, 'childtype': [], 'exit_location': [], 'name': '从化中学', 'location': '113.575629,23.546904', 'shopid': [], 'navi_poiid': 'F49F006045_113714', 'groupbuy_num': '0'}, {'parent': [], 'distance': [], 'pcode': '440000', 'importance': [], 'biz_ext': {'cost': [], 'rating': '4.5'}, 'recommend': '0', 'type': '科教文化服务;学校;中学', 'photos': [{'title': [], 'url': 'http://store.is.autonavi.com/showpic/c671bc5b3434feab8c05c6916d4f97b3'}, {'title': [], 'url': 'http://store.is.autonavi.com/showpic/7756a8a2272033076538930f71bb69b6'}, {'title': '外景图', 'url': 'http://store.is.autonavi.com/showpic/bb6ffc01c9733f0ac53fc29a5a89b762'}], 'discount_num': '0', 'gridcode': '3413525212', 'typecode': '141202', 'shopinfo': '0', 'poiweight': [], 'citycode': '020', 'adname': '越秀区', 'children': [], 'alias': [], 'tel': '020-83825151', 'id': 'B00140BZXJ', 'tag': [], 'event': [], 'entr_location': '113.285105,23.130717', 'indoor_map': '0', 'email': [], 'timestamp': '2020-11-07 19:04:42', 'website': [], 'address': '东风东路580号', 'adcode': '440104', 'pname': '广东省', 'biz_type': [], 'cityname': '广州市', 'postcode': [], 'match': '0', 'business_area': '东风', 'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []}, 'childtype': [], 'exit_location': [], 'name': '广州市美术中学', 'location': '113.284834,23.130151', 'shopid': [], 'navi_poiid': 'F49F011043_603641', 'groupbuy_num': '0'}, {'parent': [], 'distance': [], 'pcode': '440000', 'importance': [], 'biz_ext': {'cost': [], 'rating': '4.5'}, 'recommend': '0', 'type': '科教文化服务;学校;中学', 'photos': [{'title': [], 'url': 'http://store.is.autonavi.com/showpic/3ef0dbd9eb3d56f19276f110b8372f03'}, {'title': '外景图', 'url': 'http://store.is.autonavi.com/showpic/7f275e53262fa4437439893bc9f2c451'}, {'title': '外景图', 'url': 'http://store.is.autonavi.com/showpic/238a0fbc04270960370d1bb3bf48c9b6'}], 'discount_num': '0', 'gridcode': '3413520022', 'typecode': '141202', 'shopinfo': '0', 'poiweight': [], 'citycode': '020', 'adname': '海珠区', 'children': [], 'alias': [], 'tel': '020-34018545', 'id': 'B00140C5ZD', 'tag': [], 'event': [], 'entr_location': '113.260062,23.089436', 'indoor_map': '0', 'email': [], 'timestamp': '2020-11-10 04:10:43', 'website': [], 'address': '工业大道北101号', 'adcode': '440105', 'pname': '广东省', 'biz_type': [], 'cityname': '广州市', 'postcode': [], 'match': '0', 'business_area': '昌岗', 'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []}, 'childtype': [], 'exit_location': [], 'name': '广州市第四十一中学', 'location': '113.263304,23.089455', 'shopid': [], 'navi_poiid': 'F49F011043_139313;47922', 'groupbuy_num': '0'}, {'parent': [], 'distance': [], 'pcode': '440000', 'importance': [], 'biz_ext': {'cost': [], 'rating': '3.5'}, 'recommend': '0', 'type': '科教文化服务;学校;中学', 'photos': [{'title': [], 'url': 'http://store.is.autonavi.com/showpic/2f4ce47b088c85d00239ad1a872e3034'}, {'title': [], 'url': 'http://store.is.autonavi.com/showpic/375eba701009c0bb7b75f06ddbd19aa3'}, {'title': [], 'url': 'http://store.is.autonavi.com/showpic/2d34a8c9d33f807ef906aa6f9bf7c47c'}], 'discount_num': '0', 'gridcode': '3413517621', 'typecode': '141202', 'shopinfo': '0', 'poiweight': [], 'citycode': '020', 'adname': '白云区', 'children': [], 'alias': [], 'tel': '020-83334449', 'id': 'B00141JRRJ', 'tag': [], 'event': [], 'entr_location': '113.207398,23.147065', 'indoor_map': '0', 'email': [], 'timestamp': '2020-11-07 16:30:24', 'website': [], 'address': '藤业一路365号', 'adcode': '440111', 'pname': '广东省', 'biz_type': [], 'cityname': '广州市', 'postcode': [], 'match': '0', 'business_area': '金沙', 'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []}, 'childtype': [], 'exit_location': [], 'name': '广州市白云中学(北区)', 'location': '113.207587,23.147487', 'shopid': [], 'navi_poiid': 'F49F011042_141569', 'groupbuy_num': '0'}, {'parent': [], 'distance': [], 'pcode': '440000', 'importance': [], 'biz_ext': {'cost': [], 'rating': '4.5'}, 'recommend': '0', 'type': '科教文化服务;学校;中学', 'photos': [{'title': [], 'url': 'http://aos-cdn-image.amap.com/sns/ugccomment/c2ef09a3-cbb1-4921-970b-b3b17b1e0222.jpg'}, {'title': [], 'url': 'http://store.is.autonavi.com/showpic/a5c701a271c780d776f88892e6128a82'}, {'title': [], 'url': 'http://store.is.autonavi.com/showpic/2424810660fc500395bf00967c280d89'}], 'discount_num': '0', 'gridcode': '3413532510', 'typecode': '141202', 'shopinfo': '0', 'poiweight': [], 'citycode': '020', 'adname': '黄埔区', 'children': [], 'alias': [], 'tel': '020-82279954;020-82277650', 'id': 'B001408902', 'tag': [], 'event': [], 'entr_location': '113.438484,23.101244', 'indoor_map': '0', 'email': [], 'timestamp': '2020-11-14 00:07:41', 'website': [], 'address': '大沙地西路5号(近珠江村)', 'adcode': '440112', 'pname': '广东省', 'biz_type': [], 'cityname': '广州市', 'postcode': [], 'match': '0', 'business_area': '大沙', 'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []}, 'childtype': [], 'exit_location': [], 'name': '广州市第八十六中学', 'location': '113.438497,23.102962', 'shopid': [], 'navi_poiid': 'F49F011044_267153', 'groupbuy_num': '0'}], 'status': '1', 'info': 'OK'}\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>parent</th>\n",
       "      <th>distance</th>\n",
       "      <th>pcode</th>\n",
       "      <th>importance</th>\n",
       "      <th>recommend</th>\n",
       "      <th>type</th>\n",
       "      <th>photos</th>\n",
       "      <th>discount_num</th>\n",
       "      <th>gridcode</th>\n",
       "      <th>typecode</th>\n",
       "      <th>...</th>\n",
       "      <th>location</th>\n",
       "      <th>shopid</th>\n",
       "      <th>navi_poiid</th>\n",
       "      <th>groupbuy_num</th>\n",
       "      <th>biz_ext.cost</th>\n",
       "      <th>biz_ext.rating</th>\n",
       "      <th>indoor_data.cmsid</th>\n",
       "      <th>indoor_data.truefloor</th>\n",
       "      <th>indoor_data.cpid</th>\n",
       "      <th>indoor_data.floor</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>440000</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>科教文化服务;学校;中学</td>\n",
       "      <td>[{'title': '外景图', 'url': 'http://store.is.auto...</td>\n",
       "      <td>0</td>\n",
       "      <td>3413332000</td>\n",
       "      <td>141202</td>\n",
       "      <td>...</td>\n",
       "      <td>113.375212,22.933892</td>\n",
       "      <td>[]</td>\n",
       "      <td>F49F013043_126121</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>440000</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>科教文化服务;学校;中学</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>0</td>\n",
       "      <td>3513052021</td>\n",
       "      <td>141202</td>\n",
       "      <td>...</td>\n",
       "      <td>113.63116,23.357134</td>\n",
       "      <td>[]</td>\n",
       "      <td>F49F008046_34</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>440000</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>科教文化服务;学校;中学</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>0</td>\n",
       "      <td>3413525511</td>\n",
       "      <td>141202</td>\n",
       "      <td>...</td>\n",
       "      <td>113.320198,23.129441</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>4.5</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>440000</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>科教文化服务;学校;中学</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>0</td>\n",
       "      <td>3413623512</td>\n",
       "      <td>141202</td>\n",
       "      <td>...</td>\n",
       "      <td>113.323519,23.194831</td>\n",
       "      <td>[]</td>\n",
       "      <td>F49F010043_71998</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>440000</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>科教文化服务;学校;中学</td>\n",
       "      <td>[{'title': '外景图', 'url': 'http://store.is.auto...</td>\n",
       "      <td>0</td>\n",
       "      <td>3413324900</td>\n",
       "      <td>141202</td>\n",
       "      <td>...</td>\n",
       "      <td>113.362869,22.952392</td>\n",
       "      <td>[]</td>\n",
       "      <td>F49F013043_88503</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>4.5</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>440000</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>科教文化服务;学校;中学</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>0</td>\n",
       "      <td>3513120722</td>\n",
       "      <td>141202</td>\n",
       "      <td>...</td>\n",
       "      <td>113.348445,23.424031</td>\n",
       "      <td>[]</td>\n",
       "      <td>F49F007043_102</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>B00141RASQ</td>\n",
       "      <td>[]</td>\n",
       "      <td>440000</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>科教文化服务;学校;中学</td>\n",
       "      <td>[{'title': '内景图', 'url': 'http://store.is.auto...</td>\n",
       "      <td>0</td>\n",
       "      <td>3413520222</td>\n",
       "      <td>141202</td>\n",
       "      <td>...</td>\n",
       "      <td>113.285307,23.089539</td>\n",
       "      <td>[]</td>\n",
       "      <td>F49F011043_44865</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>4.0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>440000</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>科教文化服务;学校;中学</td>\n",
       "      <td>[{'title': '内景图', 'url': 'http://store.is.auto...</td>\n",
       "      <td>0</td>\n",
       "      <td>3413764810</td>\n",
       "      <td>141202</td>\n",
       "      <td>...</td>\n",
       "      <td>113.852651,23.287645</td>\n",
       "      <td>[]</td>\n",
       "      <td>F49F009047_325</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>440000</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>科教文化服务;学校;中学</td>\n",
       "      <td>[{'title': '门头照', 'url': 'http://store.is.auto...</td>\n",
       "      <td>0</td>\n",
       "      <td>3413420320</td>\n",
       "      <td>141202</td>\n",
       "      <td>...</td>\n",
       "      <td>113.291613,23.007627</td>\n",
       "      <td>[]</td>\n",
       "      <td>F49F012043_352256</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>440000</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>科教文化服务;学校;中学</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>0</td>\n",
       "      <td>3413520310</td>\n",
       "      <td>141202</td>\n",
       "      <td>...</td>\n",
       "      <td>113.290144,23.086162</td>\n",
       "      <td>[]</td>\n",
       "      <td>F49F011043_44630</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>440000</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>科教文化服务;学校;中学</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>0</td>\n",
       "      <td>3513015602</td>\n",
       "      <td>141202</td>\n",
       "      <td>...</td>\n",
       "      <td>113.210511,23.377327</td>\n",
       "      <td>[]</td>\n",
       "      <td>F49F008042_231295;164145</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.5</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>B0FFIGLX5N</td>\n",
       "      <td>[]</td>\n",
       "      <td>440000</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>科教文化服务;学校;中学</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>0</td>\n",
       "      <td>3413521300</td>\n",
       "      <td>141202</td>\n",
       "      <td>...</td>\n",
       "      <td>113.29102,23.093801</td>\n",
       "      <td>[]</td>\n",
       "      <td>F49F011043_71012;71011</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>4.5</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>440000</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>科教文化服务;学校;中学</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>0</td>\n",
       "      <td>3513115221</td>\n",
       "      <td>141202</td>\n",
       "      <td>...</td>\n",
       "      <td>113.15763,23.464562</td>\n",
       "      <td>[]</td>\n",
       "      <td>F49F007042_6526</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>440000</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>科教文化服务;学校;中学</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>0</td>\n",
       "      <td>3513017810</td>\n",
       "      <td>141202</td>\n",
       "      <td>...</td>\n",
       "      <td>113.229068,23.396533</td>\n",
       "      <td>[]</td>\n",
       "      <td>F49F008042_43659</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>5.0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>440000</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>科教文化服务;学校;中学</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>0</td>\n",
       "      <td>3413763821</td>\n",
       "      <td>141202</td>\n",
       "      <td>...</td>\n",
       "      <td>113.854174,23.282078</td>\n",
       "      <td>[]</td>\n",
       "      <td>F49F009047_127301</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>4.0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>440000</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>科教文化服务;学校;中学</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>0</td>\n",
       "      <td>3513245610</td>\n",
       "      <td>141202</td>\n",
       "      <td>...</td>\n",
       "      <td>113.575629,23.546904</td>\n",
       "      <td>[]</td>\n",
       "      <td>F49F006045_113714</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>440000</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>科教文化服务;学校;中学</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>0</td>\n",
       "      <td>3413525212</td>\n",
       "      <td>141202</td>\n",
       "      <td>...</td>\n",
       "      <td>113.284834,23.130151</td>\n",
       "      <td>[]</td>\n",
       "      <td>F49F011043_603641</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>4.5</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>440000</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>科教文化服务;学校;中学</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>0</td>\n",
       "      <td>3413520022</td>\n",
       "      <td>141202</td>\n",
       "      <td>...</td>\n",
       "      <td>113.263304,23.089455</td>\n",
       "      <td>[]</td>\n",
       "      <td>F49F011043_139313;47922</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>4.5</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>440000</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>科教文化服务;学校;中学</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>0</td>\n",
       "      <td>3413517621</td>\n",
       "      <td>141202</td>\n",
       "      <td>...</td>\n",
       "      <td>113.207587,23.147487</td>\n",
       "      <td>[]</td>\n",
       "      <td>F49F011042_141569</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.5</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>440000</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>科教文化服务;学校;中学</td>\n",
       "      <td>[{'title': [], 'url': 'http://aos-cdn-image.am...</td>\n",
       "      <td>0</td>\n",
       "      <td>3413532510</td>\n",
       "      <td>141202</td>\n",
       "      <td>...</td>\n",
       "      <td>113.438497,23.102962</td>\n",
       "      <td>[]</td>\n",
       "      <td>F49F011044_267153</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>4.5</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>20 rows × 46 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "        parent distance   pcode importance recommend          type  \\\n",
       "0           []       []  440000         []         0  科教文化服务;学校;中学   \n",
       "1           []       []  440000         []         0  科教文化服务;学校;中学   \n",
       "2           []       []  440000         []         0  科教文化服务;学校;中学   \n",
       "3           []       []  440000         []         0  科教文化服务;学校;中学   \n",
       "4           []       []  440000         []         0  科教文化服务;学校;中学   \n",
       "5           []       []  440000         []         0  科教文化服务;学校;中学   \n",
       "6   B00141RASQ       []  440000         []         0  科教文化服务;学校;中学   \n",
       "7           []       []  440000         []         0  科教文化服务;学校;中学   \n",
       "8           []       []  440000         []         0  科教文化服务;学校;中学   \n",
       "9           []       []  440000         []         0  科教文化服务;学校;中学   \n",
       "10          []       []  440000         []         0  科教文化服务;学校;中学   \n",
       "11  B0FFIGLX5N       []  440000         []         0  科教文化服务;学校;中学   \n",
       "12          []       []  440000         []         0  科教文化服务;学校;中学   \n",
       "13          []       []  440000         []         0  科教文化服务;学校;中学   \n",
       "14          []       []  440000         []         0  科教文化服务;学校;中学   \n",
       "15          []       []  440000         []         0  科教文化服务;学校;中学   \n",
       "16          []       []  440000         []         0  科教文化服务;学校;中学   \n",
       "17          []       []  440000         []         0  科教文化服务;学校;中学   \n",
       "18          []       []  440000         []         0  科教文化服务;学校;中学   \n",
       "19          []       []  440000         []         0  科教文化服务;学校;中学   \n",
       "\n",
       "                                               photos discount_num  \\\n",
       "0   [{'title': '外景图', 'url': 'http://store.is.auto...            0   \n",
       "1   [{'title': [], 'url': 'http://store.is.autonav...            0   \n",
       "2   [{'title': [], 'url': 'http://store.is.autonav...            0   \n",
       "3   [{'title': [], 'url': 'http://store.is.autonav...            0   \n",
       "4   [{'title': '外景图', 'url': 'http://store.is.auto...            0   \n",
       "5   [{'title': [], 'url': 'http://store.is.autonav...            0   \n",
       "6   [{'title': '内景图', 'url': 'http://store.is.auto...            0   \n",
       "7   [{'title': '内景图', 'url': 'http://store.is.auto...            0   \n",
       "8   [{'title': '门头照', 'url': 'http://store.is.auto...            0   \n",
       "9   [{'title': [], 'url': 'http://store.is.autonav...            0   \n",
       "10  [{'title': [], 'url': 'http://store.is.autonav...            0   \n",
       "11  [{'title': [], 'url': 'http://store.is.autonav...            0   \n",
       "12  [{'title': [], 'url': 'http://store.is.autonav...            0   \n",
       "13  [{'title': [], 'url': 'http://store.is.autonav...            0   \n",
       "14  [{'title': [], 'url': 'http://store.is.autonav...            0   \n",
       "15  [{'title': [], 'url': 'http://store.is.autonav...            0   \n",
       "16  [{'title': [], 'url': 'http://store.is.autonav...            0   \n",
       "17  [{'title': [], 'url': 'http://store.is.autonav...            0   \n",
       "18  [{'title': [], 'url': 'http://store.is.autonav...            0   \n",
       "19  [{'title': [], 'url': 'http://aos-cdn-image.am...            0   \n",
       "\n",
       "      gridcode typecode  ...              location shopid  \\\n",
       "0   3413332000   141202  ...  113.375212,22.933892     []   \n",
       "1   3513052021   141202  ...   113.63116,23.357134     []   \n",
       "2   3413525511   141202  ...  113.320198,23.129441     []   \n",
       "3   3413623512   141202  ...  113.323519,23.194831     []   \n",
       "4   3413324900   141202  ...  113.362869,22.952392     []   \n",
       "5   3513120722   141202  ...  113.348445,23.424031     []   \n",
       "6   3413520222   141202  ...  113.285307,23.089539     []   \n",
       "7   3413764810   141202  ...  113.852651,23.287645     []   \n",
       "8   3413420320   141202  ...  113.291613,23.007627     []   \n",
       "9   3413520310   141202  ...  113.290144,23.086162     []   \n",
       "10  3513015602   141202  ...  113.210511,23.377327     []   \n",
       "11  3413521300   141202  ...   113.29102,23.093801     []   \n",
       "12  3513115221   141202  ...   113.15763,23.464562     []   \n",
       "13  3513017810   141202  ...  113.229068,23.396533     []   \n",
       "14  3413763821   141202  ...  113.854174,23.282078     []   \n",
       "15  3513245610   141202  ...  113.575629,23.546904     []   \n",
       "16  3413525212   141202  ...  113.284834,23.130151     []   \n",
       "17  3413520022   141202  ...  113.263304,23.089455     []   \n",
       "18  3413517621   141202  ...  113.207587,23.147487     []   \n",
       "19  3413532510   141202  ...  113.438497,23.102962     []   \n",
       "\n",
       "                  navi_poiid groupbuy_num biz_ext.cost biz_ext.rating  \\\n",
       "0          F49F013043_126121            0           []            3.0   \n",
       "1              F49F008046_34            0           []            3.0   \n",
       "2                         []            0           []            4.5   \n",
       "3           F49F010043_71998            0           []            3.0   \n",
       "4           F49F013043_88503            0           []            4.5   \n",
       "5             F49F007043_102            0           []            3.0   \n",
       "6           F49F011043_44865            0           []            4.0   \n",
       "7             F49F009047_325            0           []            3.0   \n",
       "8          F49F012043_352256            0           []            3.0   \n",
       "9           F49F011043_44630            0           []            3.0   \n",
       "10  F49F008042_231295;164145            0           []            3.5   \n",
       "11    F49F011043_71012;71011            0           []            4.5   \n",
       "12           F49F007042_6526            0           []            3.0   \n",
       "13          F49F008042_43659            0           []            5.0   \n",
       "14         F49F009047_127301            0           []            4.0   \n",
       "15         F49F006045_113714            0           []            3.0   \n",
       "16         F49F011043_603641            0           []            4.5   \n",
       "17   F49F011043_139313;47922            0           []            4.5   \n",
       "18         F49F011042_141569            0           []            3.5   \n",
       "19         F49F011044_267153            0           []            4.5   \n",
       "\n",
       "   indoor_data.cmsid indoor_data.truefloor indoor_data.cpid indoor_data.floor  \n",
       "0                 []                    []               []                []  \n",
       "1                 []                    []               []                []  \n",
       "2                 []                    []               []                []  \n",
       "3                 []                    []               []                []  \n",
       "4                 []                    []               []                []  \n",
       "5                 []                    []               []                []  \n",
       "6                 []                    []               []                []  \n",
       "7                 []                    []               []                []  \n",
       "8                 []                    []               []                []  \n",
       "9                 []                    []               []                []  \n",
       "10                []                    []               []                []  \n",
       "11                []                    []               []                []  \n",
       "12                []                    []               []                []  \n",
       "13                []                    []               []                []  \n",
       "14                []                    []               []                []  \n",
       "15                []                    []               []                []  \n",
       "16                []                    []               []                []  \n",
       "17                []                    []               []                []  \n",
       "18                []                    []               []                []  \n",
       "19                []                    []               []                []  \n",
       "\n",
       "[20 rows x 46 columns]"
      ]
     },
     "execution_count": 23,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "广州_中学 = place_text(keywords=None,types='中学',city=\"广州市\",children=1,extensions='all',page=3)\n",
    "print(广州_中学)\n",
    "df_广州_中学 = pd.json_normalize(广州_中学[\"pois\"])\n",
    "df_广州_中学 "
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 周边搜索 \n",
    "#### 该功能的产品应用方案或场景：\n",
    "* 在用户传入经纬度坐标点附近，在设定的范围内，按照关键字或POI类型搜索；\n",
    "* 例如：我想要找找学校附近有啥好玩的，那么久调用了这个API功能，将学校半径3000米之内的吃喝玩乐都找出来了！\n",
    "* 必要参数：key，location\n",
    "* 可选参数：keywords，types，city，radius，sortrule，offset，page，extensions，sig，output，callback"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [],
   "source": [
    "# F-1 \n",
    "def place_around(location,keywords=None,types=None,city=None,redius=None,sortrule=None,offset=None,page=None,extensions='base',sig=None)->dict:\n",
    "    \"\"\"周边搜索\"\"\"\n",
    "    url = 'https://restapi.amap.com/v3/place/around?parameters'\n",
    "    params={\n",
    "        'key':key_jn,\n",
    "        'keywords':keywords,\n",
    "        'location':location,\n",
    "        'types':types,\n",
    "        'city':city,\n",
    "        'redius':redius,\n",
    "        'sortrule':sortrule,\n",
    "        'offset':offset,\n",
    "        'page':page,\n",
    "        'extensions':extensions,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'suggestion': {'keywords': [], 'cities': []},\n",
       " 'count': '825',\n",
       " 'infocode': '10000',\n",
       " 'pois': [{'parent': [],\n",
       "   'address': '温泉镇笃行路20、22、24号中山大学南方学院',\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'type': '生活服务;共享设备;充电宝',\n",
       "   'photos': [],\n",
       "   'typecode': '072101',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'name': '街电(榴芒一族中山大学南方学院店)',\n",
       "   'location': '113.679287,23.632575',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFLB846S'},\n",
       "  {'parent': [],\n",
       "   'address': '从化温泉镇中山大学南方学院博学路6号',\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'type': '餐饮服务;中餐厅;特色/地方风味餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050118',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'name': '爽爽石磨肠粉',\n",
       "   'location': '113.679287,23.632575',\n",
       "   'tel': '18218913303',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFKX3T5Y'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇中山大学南方学院明辨路2号二、三层',\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'name': '避风塘',\n",
       "   'location': '113.679286,23.632574',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFKT2R96'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇中山大学南方学院明辨路2号二、三层',\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'name': 'slim tea',\n",
       "   'location': '113.679286,23.632574',\n",
       "   'tel': '18944690066',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFKSLFAN'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇中山大学南方学院后门润泰超市一楼05号商铺',\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'type': '餐饮服务;中餐厅;特色/地方风味餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050118',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'name': '劲酷烤吧',\n",
       "   'location': '113.679286,23.632573',\n",
       "   'tel': '13719231627',\n",
       "   'shopid': [],\n",
       "   'id': 'B0G3AYBO5X'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇中山大学南方学院后门润泰超市一楼05号商铺',\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'type': '餐饮服务;中餐厅;广东菜(粤菜)',\n",
       "   'photos': [],\n",
       "   'typecode': '050103',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'name': '东记乡村美食',\n",
       "   'location': '113.679286,23.632573',\n",
       "   'tel': '13922398107',\n",
       "   'shopid': [],\n",
       "   'id': 'B0G3APADKJ'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇中山大学南方学院后门润泰超市一楼05号商铺',\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050300',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'name': '北方饺子馆',\n",
       "   'location': '113.679286,23.632573',\n",
       "   'tel': '13434241448',\n",
       "   'shopid': [],\n",
       "   'id': 'B0G2Z7IX80'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇中山大学南方学院后门润泰超市一楼05号商铺',\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'name': '第1烤场',\n",
       "   'location': '113.679286,23.632573',\n",
       "   'tel': '13538825321',\n",
       "   'shopid': [],\n",
       "   'id': 'B0G2K6PX0X'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇中山大学南方学院后门润泰超市一楼05号商铺',\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'name': '叶龙老武汉烧烤',\n",
       "   'location': '113.679286,23.632573',\n",
       "   'tel': '15918718710;13125030232',\n",
       "   'shopid': [],\n",
       "   'id': 'B0G1393J7X'},\n",
       "  {'parent': [],\n",
       "   'address': '从化温泉镇中山大学南方学院明辩路2号',\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'name': '网红小串店',\n",
       "   'location': '113.679286,23.632573',\n",
       "   'tel': '13802426981',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFLNRH1K'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇中山大学南方学院后门润泰超市一楼05号商铺',\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'name': '过气轻食屋',\n",
       "   'location': '113.679286,23.632573',\n",
       "   'tel': '13049636920',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFKTDMOI'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇中山大学南方学院后门润泰超市一楼05号商铺',\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'name': '莫凡烧烤',\n",
       "   'location': '113.679286,23.632573',\n",
       "   'tel': '13929768267',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFKT4WNY'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉大道882号旁润泰超市一楼商铺',\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'type': '餐饮服务;冷饮店;冷饮店',\n",
       "   'photos': [],\n",
       "   'typecode': '050700',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'name': 'LV柠檬茶',\n",
       "   'location': '113.679286,23.632573',\n",
       "   'tel': '15018428578',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFIIQNQ7'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇中山大学南方学院后门润泰超市一楼05号商铺',\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'type': '餐饮服务;甜品店;甜品店',\n",
       "   'photos': [],\n",
       "   'typecode': '050900',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'name': '味美轩(中大店)',\n",
       "   'location': '113.679286,23.632571',\n",
       "   'tel': '15915874513',\n",
       "   'shopid': [],\n",
       "   'id': 'B0G2T96S9V'},\n",
       "  {'parent': [],\n",
       "   'address': '中山大学南方学院',\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'type': '餐饮服务;中餐厅;四川菜(川菜)',\n",
       "   'photos': [],\n",
       "   'typecode': '050102',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'name': '重庆湖边纸包鱼',\n",
       "   'location': '113.679871,23.630292',\n",
       "   'tel': '13924024938',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFL7NUA2'},\n",
       "  {'parent': [],\n",
       "   'address': '博学路中山大学南方学院后门润泰超市首层23号',\n",
       "   'distance': '1',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050300',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'name': '我家厨房',\n",
       "   'location': '113.679289,23.632563',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFK28XPU'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉大道882号',\n",
       "   'distance': '2',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'type': '生活服务;共享设备;充电宝',\n",
       "   'photos': [],\n",
       "   'typecode': '072101',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'name': '怪兽充电(中山大学南方学院)',\n",
       "   'location': '113.679262,23.632583',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFLLU813'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇博学路中山大学南方学院后门润泰超市一楼05号商铺',\n",
       "   'distance': '9',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'type': '餐饮服务;外国餐厅;日本料理',\n",
       "   'photos': [],\n",
       "   'typecode': '050202',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'name': '井禾寿司',\n",
       "   'location': '113.679193,23.632552',\n",
       "   'tel': '13789117723',\n",
       "   'shopid': [],\n",
       "   'id': 'B0G14PDQVA'},\n",
       "  {'parent': [],\n",
       "   'address': '中山大学南方学院',\n",
       "   'distance': '12',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'type': '餐饮服务;外国餐厅;西餐厅(综合风味)',\n",
       "   'photos': [],\n",
       "   'typecode': '050201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'name': 'Uni-hotel西餐',\n",
       "   'location': '113.679224,23.632671',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0GR3OMDZ2'},\n",
       "  {'parent': [],\n",
       "   'address': '从化温泉镇中山大学南方学院明辩路2号',\n",
       "   'distance': '16',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'biz_type': 'diner',\n",
       "   'type': '餐饮服务;中餐厅;广东菜(粤菜)',\n",
       "   'photos': [],\n",
       "   'typecode': '050103',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'name': '耀记美食',\n",
       "   'location': '113.679405,23.632673',\n",
       "   'tel': '18816801934',\n",
       "   'shopid': [],\n",
       "   'id': 'B0GRGOTLSL'}],\n",
       " 'status': '1',\n",
       " 'info': 'OK'}"
      ]
     },
     "execution_count": 14,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# F-2 json信息\n",
    "中大南方_周边POI = place_around(中大南方_location)\n",
    "中大南方_周边POI"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>parent</th>\n",
       "      <th>address</th>\n",
       "      <th>distance</th>\n",
       "      <th>biz_ext</th>\n",
       "      <th>importance</th>\n",
       "      <th>biz_type</th>\n",
       "      <th>type</th>\n",
       "      <th>photos</th>\n",
       "      <th>typecode</th>\n",
       "      <th>shopinfo</th>\n",
       "      <th>poiweight</th>\n",
       "      <th>childtype</th>\n",
       "      <th>name</th>\n",
       "      <th>location</th>\n",
       "      <th>tel</th>\n",
       "      <th>shopid</th>\n",
       "      <th>id</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>[]</td>\n",
       "      <td>温泉镇笃行路20、22、24号中山大学南方学院</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>生活服务;共享设备;充电宝</td>\n",
       "      <td>[]</td>\n",
       "      <td>072101</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>街电(榴芒一族中山大学南方学院店)</td>\n",
       "      <td>113.679287,23.632575</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>B0FFLB846S</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>[]</td>\n",
       "      <td>从化温泉镇中山大学南方学院博学路6号</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>diner</td>\n",
       "      <td>餐饮服务;中餐厅;特色/地方风味餐厅</td>\n",
       "      <td>[]</td>\n",
       "      <td>050118</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>爽爽石磨肠粉</td>\n",
       "      <td>113.679287,23.632575</td>\n",
       "      <td>18218913303</td>\n",
       "      <td>[]</td>\n",
       "      <td>B0FFKX3T5Y</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>[]</td>\n",
       "      <td>温泉镇中山大学南方学院明辨路2号二、三层</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>diner</td>\n",
       "      <td>餐饮服务;餐饮相关场所;餐饮相关</td>\n",
       "      <td>[]</td>\n",
       "      <td>050000</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>避风塘</td>\n",
       "      <td>113.679286,23.632574</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>B0FFKT2R96</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>[]</td>\n",
       "      <td>温泉镇中山大学南方学院明辨路2号二、三层</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>diner</td>\n",
       "      <td>餐饮服务;餐饮相关场所;餐饮相关</td>\n",
       "      <td>[]</td>\n",
       "      <td>050000</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>slim tea</td>\n",
       "      <td>113.679286,23.632574</td>\n",
       "      <td>18944690066</td>\n",
       "      <td>[]</td>\n",
       "      <td>B0FFKSLFAN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>[]</td>\n",
       "      <td>温泉镇中山大学南方学院后门润泰超市一楼05号商铺</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>diner</td>\n",
       "      <td>餐饮服务;中餐厅;特色/地方风味餐厅</td>\n",
       "      <td>[]</td>\n",
       "      <td>050118</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>劲酷烤吧</td>\n",
       "      <td>113.679286,23.632573</td>\n",
       "      <td>13719231627</td>\n",
       "      <td>[]</td>\n",
       "      <td>B0G3AYBO5X</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>[]</td>\n",
       "      <td>温泉镇中山大学南方学院后门润泰超市一楼05号商铺</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>diner</td>\n",
       "      <td>餐饮服务;中餐厅;广东菜(粤菜)</td>\n",
       "      <td>[]</td>\n",
       "      <td>050103</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>东记乡村美食</td>\n",
       "      <td>113.679286,23.632573</td>\n",
       "      <td>13922398107</td>\n",
       "      <td>[]</td>\n",
       "      <td>B0G3APADKJ</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>[]</td>\n",
       "      <td>温泉镇中山大学南方学院后门润泰超市一楼05号商铺</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>diner</td>\n",
       "      <td>餐饮服务;快餐厅;快餐厅</td>\n",
       "      <td>[]</td>\n",
       "      <td>050300</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>北方饺子馆</td>\n",
       "      <td>113.679286,23.632573</td>\n",
       "      <td>13434241448</td>\n",
       "      <td>[]</td>\n",
       "      <td>B0G2Z7IX80</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>[]</td>\n",
       "      <td>温泉镇中山大学南方学院后门润泰超市一楼05号商铺</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>diner</td>\n",
       "      <td>餐饮服务;餐饮相关场所;餐饮相关</td>\n",
       "      <td>[]</td>\n",
       "      <td>050000</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>第1烤场</td>\n",
       "      <td>113.679286,23.632573</td>\n",
       "      <td>13538825321</td>\n",
       "      <td>[]</td>\n",
       "      <td>B0G2K6PX0X</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>[]</td>\n",
       "      <td>温泉镇中山大学南方学院后门润泰超市一楼05号商铺</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>diner</td>\n",
       "      <td>餐饮服务;餐饮相关场所;餐饮相关</td>\n",
       "      <td>[]</td>\n",
       "      <td>050000</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>叶龙老武汉烧烤</td>\n",
       "      <td>113.679286,23.632573</td>\n",
       "      <td>15918718710;13125030232</td>\n",
       "      <td>[]</td>\n",
       "      <td>B0G1393J7X</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>[]</td>\n",
       "      <td>从化温泉镇中山大学南方学院明辩路2号</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>diner</td>\n",
       "      <td>餐饮服务;餐饮相关场所;餐饮相关</td>\n",
       "      <td>[]</td>\n",
       "      <td>050000</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>网红小串店</td>\n",
       "      <td>113.679286,23.632573</td>\n",
       "      <td>13802426981</td>\n",
       "      <td>[]</td>\n",
       "      <td>B0FFLNRH1K</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>[]</td>\n",
       "      <td>温泉镇中山大学南方学院后门润泰超市一楼05号商铺</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>diner</td>\n",
       "      <td>餐饮服务;餐饮相关场所;餐饮相关</td>\n",
       "      <td>[]</td>\n",
       "      <td>050000</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>过气轻食屋</td>\n",
       "      <td>113.679286,23.632573</td>\n",
       "      <td>13049636920</td>\n",
       "      <td>[]</td>\n",
       "      <td>B0FFKTDMOI</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>[]</td>\n",
       "      <td>温泉镇中山大学南方学院后门润泰超市一楼05号商铺</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>diner</td>\n",
       "      <td>餐饮服务;餐饮相关场所;餐饮相关</td>\n",
       "      <td>[]</td>\n",
       "      <td>050000</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>莫凡烧烤</td>\n",
       "      <td>113.679286,23.632573</td>\n",
       "      <td>13929768267</td>\n",
       "      <td>[]</td>\n",
       "      <td>B0FFKT4WNY</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>[]</td>\n",
       "      <td>温泉大道882号旁润泰超市一楼商铺</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>diner</td>\n",
       "      <td>餐饮服务;冷饮店;冷饮店</td>\n",
       "      <td>[]</td>\n",
       "      <td>050700</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>LV柠檬茶</td>\n",
       "      <td>113.679286,23.632573</td>\n",
       "      <td>15018428578</td>\n",
       "      <td>[]</td>\n",
       "      <td>B0FFIIQNQ7</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>[]</td>\n",
       "      <td>温泉镇中山大学南方学院后门润泰超市一楼05号商铺</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>diner</td>\n",
       "      <td>餐饮服务;甜品店;甜品店</td>\n",
       "      <td>[]</td>\n",
       "      <td>050900</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>味美轩(中大店)</td>\n",
       "      <td>113.679286,23.632571</td>\n",
       "      <td>15915874513</td>\n",
       "      <td>[]</td>\n",
       "      <td>B0G2T96S9V</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>[]</td>\n",
       "      <td>中山大学南方学院</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>diner</td>\n",
       "      <td>餐饮服务;中餐厅;四川菜(川菜)</td>\n",
       "      <td>[]</td>\n",
       "      <td>050102</td>\n",
       "      <td>1</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>重庆湖边纸包鱼</td>\n",
       "      <td>113.679871,23.630292</td>\n",
       "      <td>13924024938</td>\n",
       "      <td>[]</td>\n",
       "      <td>B0FFL7NUA2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>[]</td>\n",
       "      <td>博学路中山大学南方学院后门润泰超市首层23号</td>\n",
       "      <td>1</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>diner</td>\n",
       "      <td>餐饮服务;快餐厅;快餐厅</td>\n",
       "      <td>[]</td>\n",
       "      <td>050300</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>我家厨房</td>\n",
       "      <td>113.679289,23.632563</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>B0FFK28XPU</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>[]</td>\n",
       "      <td>温泉大道882号</td>\n",
       "      <td>2</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>生活服务;共享设备;充电宝</td>\n",
       "      <td>[]</td>\n",
       "      <td>072101</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>怪兽充电(中山大学南方学院)</td>\n",
       "      <td>113.679262,23.632583</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>B0FFLLU813</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>[]</td>\n",
       "      <td>温泉镇博学路中山大学南方学院后门润泰超市一楼05号商铺</td>\n",
       "      <td>9</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>diner</td>\n",
       "      <td>餐饮服务;外国餐厅;日本料理</td>\n",
       "      <td>[]</td>\n",
       "      <td>050202</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>井禾寿司</td>\n",
       "      <td>113.679193,23.632552</td>\n",
       "      <td>13789117723</td>\n",
       "      <td>[]</td>\n",
       "      <td>B0G14PDQVA</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>[]</td>\n",
       "      <td>中山大学南方学院</td>\n",
       "      <td>12</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>diner</td>\n",
       "      <td>餐饮服务;外国餐厅;西餐厅(综合风味)</td>\n",
       "      <td>[]</td>\n",
       "      <td>050201</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>Uni-hotel西餐</td>\n",
       "      <td>113.679224,23.632671</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>B0GR3OMDZ2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>[]</td>\n",
       "      <td>从化温泉镇中山大学南方学院明辩路2号</td>\n",
       "      <td>16</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>diner</td>\n",
       "      <td>餐饮服务;中餐厅;广东菜(粤菜)</td>\n",
       "      <td>[]</td>\n",
       "      <td>050103</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>耀记美食</td>\n",
       "      <td>113.679405,23.632673</td>\n",
       "      <td>18816801934</td>\n",
       "      <td>[]</td>\n",
       "      <td>B0GRGOTLSL</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   parent                      address distance biz_ext importance biz_type  \\\n",
       "0      []      温泉镇笃行路20、22、24号中山大学南方学院        0      []         []       []   \n",
       "1      []           从化温泉镇中山大学南方学院博学路6号        0      []         []    diner   \n",
       "2      []         温泉镇中山大学南方学院明辨路2号二、三层        0      []         []    diner   \n",
       "3      []         温泉镇中山大学南方学院明辨路2号二、三层        0      []         []    diner   \n",
       "4      []     温泉镇中山大学南方学院后门润泰超市一楼05号商铺        0      []         []    diner   \n",
       "5      []     温泉镇中山大学南方学院后门润泰超市一楼05号商铺        0      []         []    diner   \n",
       "6      []     温泉镇中山大学南方学院后门润泰超市一楼05号商铺        0      []         []    diner   \n",
       "7      []     温泉镇中山大学南方学院后门润泰超市一楼05号商铺        0      []         []    diner   \n",
       "8      []     温泉镇中山大学南方学院后门润泰超市一楼05号商铺        0      []         []    diner   \n",
       "9      []           从化温泉镇中山大学南方学院明辩路2号        0      []         []    diner   \n",
       "10     []     温泉镇中山大学南方学院后门润泰超市一楼05号商铺        0      []         []    diner   \n",
       "11     []     温泉镇中山大学南方学院后门润泰超市一楼05号商铺        0      []         []    diner   \n",
       "12     []            温泉大道882号旁润泰超市一楼商铺        0      []         []    diner   \n",
       "13     []     温泉镇中山大学南方学院后门润泰超市一楼05号商铺        0      []         []    diner   \n",
       "14     []                     中山大学南方学院        0      []         []    diner   \n",
       "15     []       博学路中山大学南方学院后门润泰超市首层23号        1      []         []    diner   \n",
       "16     []                     温泉大道882号        2      []         []       []   \n",
       "17     []  温泉镇博学路中山大学南方学院后门润泰超市一楼05号商铺        9      []         []    diner   \n",
       "18     []                     中山大学南方学院       12      []         []    diner   \n",
       "19     []           从化温泉镇中山大学南方学院明辩路2号       16      []         []    diner   \n",
       "\n",
       "                   type photos typecode shopinfo poiweight childtype  \\\n",
       "0         生活服务;共享设备;充电宝     []   072101        0        []        []   \n",
       "1    餐饮服务;中餐厅;特色/地方风味餐厅     []   050118        0        []        []   \n",
       "2      餐饮服务;餐饮相关场所;餐饮相关     []   050000        0        []        []   \n",
       "3      餐饮服务;餐饮相关场所;餐饮相关     []   050000        0        []        []   \n",
       "4    餐饮服务;中餐厅;特色/地方风味餐厅     []   050118        0        []        []   \n",
       "5      餐饮服务;中餐厅;广东菜(粤菜)     []   050103        0        []        []   \n",
       "6          餐饮服务;快餐厅;快餐厅     []   050300        0        []        []   \n",
       "7      餐饮服务;餐饮相关场所;餐饮相关     []   050000        0        []        []   \n",
       "8      餐饮服务;餐饮相关场所;餐饮相关     []   050000        0        []        []   \n",
       "9      餐饮服务;餐饮相关场所;餐饮相关     []   050000        0        []        []   \n",
       "10     餐饮服务;餐饮相关场所;餐饮相关     []   050000        0        []        []   \n",
       "11     餐饮服务;餐饮相关场所;餐饮相关     []   050000        0        []        []   \n",
       "12         餐饮服务;冷饮店;冷饮店     []   050700        0        []        []   \n",
       "13         餐饮服务;甜品店;甜品店     []   050900        0        []        []   \n",
       "14     餐饮服务;中餐厅;四川菜(川菜)     []   050102        1        []        []   \n",
       "15         餐饮服务;快餐厅;快餐厅     []   050300        0        []        []   \n",
       "16        生活服务;共享设备;充电宝     []   072101        0        []        []   \n",
       "17       餐饮服务;外国餐厅;日本料理     []   050202        0        []        []   \n",
       "18  餐饮服务;外国餐厅;西餐厅(综合风味)     []   050201        0        []        []   \n",
       "19     餐饮服务;中餐厅;广东菜(粤菜)     []   050103        0        []        []   \n",
       "\n",
       "                 name              location                      tel shopid  \\\n",
       "0   街电(榴芒一族中山大学南方学院店)  113.679287,23.632575                       []     []   \n",
       "1              爽爽石磨肠粉  113.679287,23.632575              18218913303     []   \n",
       "2                 避风塘  113.679286,23.632574                       []     []   \n",
       "3            slim tea  113.679286,23.632574              18944690066     []   \n",
       "4                劲酷烤吧  113.679286,23.632573              13719231627     []   \n",
       "5              东记乡村美食  113.679286,23.632573              13922398107     []   \n",
       "6               北方饺子馆  113.679286,23.632573              13434241448     []   \n",
       "7                第1烤场  113.679286,23.632573              13538825321     []   \n",
       "8             叶龙老武汉烧烤  113.679286,23.632573  15918718710;13125030232     []   \n",
       "9               网红小串店  113.679286,23.632573              13802426981     []   \n",
       "10              过气轻食屋  113.679286,23.632573              13049636920     []   \n",
       "11               莫凡烧烤  113.679286,23.632573              13929768267     []   \n",
       "12              LV柠檬茶  113.679286,23.632573              15018428578     []   \n",
       "13           味美轩(中大店)  113.679286,23.632571              15915874513     []   \n",
       "14            重庆湖边纸包鱼  113.679871,23.630292              13924024938     []   \n",
       "15               我家厨房  113.679289,23.632563                       []     []   \n",
       "16     怪兽充电(中山大学南方学院)  113.679262,23.632583                       []     []   \n",
       "17               井禾寿司  113.679193,23.632552              13789117723     []   \n",
       "18        Uni-hotel西餐  113.679224,23.632671                       []     []   \n",
       "19               耀记美食  113.679405,23.632673              18816801934     []   \n",
       "\n",
       "            id  \n",
       "0   B0FFLB846S  \n",
       "1   B0FFKX3T5Y  \n",
       "2   B0FFKT2R96  \n",
       "3   B0FFKSLFAN  \n",
       "4   B0G3AYBO5X  \n",
       "5   B0G3APADKJ  \n",
       "6   B0G2Z7IX80  \n",
       "7   B0G2K6PX0X  \n",
       "8   B0G1393J7X  \n",
       "9   B0FFLNRH1K  \n",
       "10  B0FFKTDMOI  \n",
       "11  B0FFKT4WNY  \n",
       "12  B0FFIIQNQ7  \n",
       "13  B0G2T96S9V  \n",
       "14  B0FFL7NUA2  \n",
       "15  B0FFK28XPU  \n",
       "16  B0FFLLU813  \n",
       "17  B0G14PDQVA  \n",
       "18  B0GR3OMDZ2  \n",
       "19  B0GRGOTLSL  "
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# F-3 表格化，可扩展pandas处理\n",
    "df_中大南方_周边POI = pd.json_normalize(中大南方_周边POI['pois'])\n",
    "df_中大南方_周边POI"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 多边形搜索 \n",
    "#### 该功能的产品应用方案或场景：\n",
    "* 在多边形区域内进行搜索"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 62,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'suggestion': {'keywords': [], 'cities': []},\n",
       " 'count': '26',\n",
       " 'infocode': '10000',\n",
       " 'pois': [{'parent': [],\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': [], 'meal_ordering': '0'},\n",
       "   'recommend': '0',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'photos': [],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413749311',\n",
       "   'typecode': '050300',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '黄埔区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': [],\n",
       "   'id': 'B0FFMHANNZ',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': [],\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2020-10-28 10:33:40',\n",
       "   'website': [],\n",
       "   'address': '九龙大道城南邻里中心首层',\n",
       "   'adcode': '440112',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'indoor_data': {'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'business_area': [],\n",
       "   'childtype': [],\n",
       "   'exit_location': [],\n",
       "   'name': '肯德基(知识城南邻里中心餐厅)',\n",
       "   'location': '113.543409,23.330367',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': [],\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': [],\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '24.00', 'rating': '5.0', 'meal_ordering': '0'},\n",
       "   'recommend': '0',\n",
       "   'type': '餐饮服务;快餐厅;肯德基',\n",
       "   'photos': [],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413748322',\n",
       "   'typecode': '050301',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '黄埔区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '020-87956354',\n",
       "   'id': 'B0FFM7Q1X0',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': [],\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2020-10-29 05:07:22',\n",
       "   'website': [],\n",
       "   'address': '九龙大道绿地缤纷城首层134铺',\n",
       "   'adcode': '440112',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'indoor_data': {'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'business_area': [],\n",
       "   'childtype': [],\n",
       "   'exit_location': [],\n",
       "   'name': '肯德基(绿地缤纷城店)',\n",
       "   'location': '113.549049,23.324848',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': [],\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': [],\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': [], 'meal_ordering': '0'},\n",
       "   'recommend': '0',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'photos': [],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413748322',\n",
       "   'typecode': '050300',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '黄埔区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': [],\n",
       "   'id': 'B0FFM7WZRU',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': [],\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2020-11-14 04:12:31',\n",
       "   'website': [],\n",
       "   'address': '亿创街3号134号铺',\n",
       "   'adcode': '440112',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'indoor_data': {'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'business_area': [],\n",
       "   'childtype': [],\n",
       "   'exit_location': [],\n",
       "   'name': '肯德基(中新绿地缤纷城餐厅)',\n",
       "   'location': '113.549205,23.324228',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': [],\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': 'B0FFF04ASX',\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '31.00', 'rating': '4.6', 'meal_ordering': '0'},\n",
       "   'recommend': '0',\n",
       "   'type': '餐饮服务;快餐厅;肯德基',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/13a1e79236cf21712227f16947c91930'},\n",
       "    {'title': '菜品',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/8ed35a41bebfc69449f1fca61e20e618'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/3429127a173f417efbbc14a2d847e52e'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3513133920',\n",
       "   'typecode': '050301',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '从化区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '020-62161513;4009208801;020-62161512',\n",
       "   'id': 'B0FFFVDQ6A',\n",
       "   'tag': '香辣鸡翅,新奥尔良烤鸡腿饭,脆皮炸鸡,蛋挞,老北京鸡肉卷,五味小食拼盘,超级翅桶多人餐,热辣香骨鸡,卡布奇诺,嫩牛五方,醇豆浆TN,香脆薯饼,新奥尔良烤翅,香脆海苔虾,芝士培根蛋帕尼尼,醇香土豆泥,香烤照烧鸡腿饭,翅尖桶翅堡可乐餐,重磅肉霸堡双人餐,老北京香辣鸭肉卷,超级外送全家桶ST,安心大油条,十三鲜小龙虾鸡肉卷,美式,K记凉茶',\n",
       "   'event': [],\n",
       "   'entr_location': '113.4914,23.448328',\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2020-11-14 11:19:28',\n",
       "   'website': [],\n",
       "   'address': '广从南路546号新光·百德广场1层',\n",
       "   'adcode': '440117',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'indoor_data': {'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'business_area': '太平',\n",
       "   'childtype': '202',\n",
       "   'exit_location': [],\n",
       "   'name': '肯德基(百德广场餐厅)',\n",
       "   'location': '113.491612,23.448264',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': [],\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': [],\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '29.00', 'rating': '4.5', 'meal_ordering': '0'},\n",
       "   'recommend': '0',\n",
       "   'type': '餐饮服务;快餐厅;肯德基',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/13a1e79236cf21712227f16947c91930'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/4a0c3d5c480f30de3687fa6ab97eb257'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/ca06efa11697884c090e89c0a4aa734c'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3513131301',\n",
       "   'typecode': '050301',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '花都区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '020-37720437;4009200715;020-36062125',\n",
       "   'id': 'B0FFFAIHZ1',\n",
       "   'tag': '香辣鸡翅,老北京鸡肉卷,薯条,葡式蛋挞,芝士培根蛋帕尼尼,香辣鸡腿堡,新奥尔良烤鸡腿饭,伴鸡伴虾堡,五味小食拼盘,新奥尔良烤翅,雪顶咖啡,醇香土豆泥,肯德基避风塘大虾鸡腿双层堡,全家桶,芙蓉荟蔬汤,K记凉茶,香脆海苔虾,港式烧味脆皮大鸡腿饭,端午节粽子礼盒装,拿铁,新奥尔良烤鸡腿堡,中薯,黄金鸡块,原味吮指鸡,劲爆鸡米花',\n",
       "   'event': [],\n",
       "   'entr_location': '113.419728,23.425618',\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2020-11-14 09:20:53',\n",
       "   'website': [],\n",
       "   'address': '北兴镇花都大道南17号',\n",
       "   'adcode': '440114',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'indoor_data': {'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'business_area': '北兴',\n",
       "   'childtype': [],\n",
       "   'exit_location': [],\n",
       "   'name': '肯德基(白云机场店)',\n",
       "   'location': '113.419529,23.425373',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': 'F49F007044_28867;1507',\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': [],\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '44.00', 'rating': '4.7', 'meal_ordering': '0'},\n",
       "   'recommend': '0',\n",
       "   'type': '餐饮服务;快餐厅;肯德基',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/13a1e79236cf21712227f16947c91930'},\n",
       "    {'title': '菜品',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/8ed35a41bebfc69449f1fca61e20e618'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/cdfb72d9ecd0a9002a19edd8ac1bf330'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3513243720',\n",
       "   'typecode': '050301',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '从化区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '020-37907759;4009208801',\n",
       "   'id': 'B0FFFAIH7Z',\n",
       "   'tag': '纯纯的炸鸡桶,香辣鸡翅炸鸡,十翅分享桶,原味吮指鸡,塔可奥堡双人餐T,新奥尔良烤翅,嫩牛五方多人分享餐,超级塔可,塔可青年,港式烧味脆皮大鸡腿饭,辣堡滑鸡粥双人餐,辣堡单人套,冬菇滑鸡粥TN,藜麦蛋挞果茶沙啦餐T,红豆派T,雪菜笋丁鸡肉粥T,老北京鸡肉卷T,新奥尔良烤翅T,瘦肉粥热浆太阳蛋餐,鸡肉粥热浆太阳蛋餐,老北京卷土豆泥餐,金沙咸蛋黄香辣鸡翅,上校鸡块,重磅肉霸堡餐,重磅肉霸堡双人餐',\n",
       "   'event': [],\n",
       "   'entr_location': [],\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2020-11-14 09:19:27',\n",
       "   'website': [],\n",
       "   'address': '从城大道111号',\n",
       "   'adcode': '440117',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'indoor_data': {'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'business_area': '江埔',\n",
       "   'childtype': [],\n",
       "   'exit_location': [],\n",
       "   'name': '肯德基(从城大道餐厅)',\n",
       "   'location': '113.590680,23.532120',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': 'F49F006045_123810',\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': 'B00140UGAP',\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '33.00', 'rating': '4.6', 'meal_ordering': '0'},\n",
       "   'recommend': '0',\n",
       "   'type': '餐饮服务;快餐厅;肯德基',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/13a1e79236cf21712227f16947c91930'},\n",
       "    {'title': '菜品',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/8ed35a41bebfc69449f1fca61e20e618'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/315b5fe0b7bbfc9cfeaad92e76db1d94'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3513245720',\n",
       "   'typecode': '050301',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '从化区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '020-87939871;4009208801;020-87939891',\n",
       "   'id': 'B00140TWK0',\n",
       "   'tag': '香辣鸡翅炸鸡,六味小吃桶T,新奥尔良烤翅,超级翅桶多人餐T,塔可原味鸡明星餐T,薯条,塔可奥堡双人餐T,炸鸡分享桶,超级外送全家桶,新嫩牛五方,五味小食拼盘,原味吮指鸡,金沙咸蛋黄饭团,嫩牛五方人气明星餐,十三鲜小龙虾烤鸡堡T,皮蛋瘦肉粥单人餐,辣堡单人套,培根鸡腿重磅肉霸堡,塔可青年,嫩牛五方多人分享餐,小吃分享双人餐,小龙虾卷堡双人餐T,劲脆鸡腿堡ST,卷堡双人餐ST,冬菇滑鸡粥单人餐',\n",
       "   'event': [],\n",
       "   'entr_location': '113.587742,23.547929',\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2020-11-14 04:05:30',\n",
       "   'website': 'www.kfc.com.cn',\n",
       "   'address': '新城东路66号林苑大厦1-2层',\n",
       "   'adcode': '440117',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'indoor_data': {'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'business_area': '街口',\n",
       "   'childtype': '202',\n",
       "   'exit_location': [],\n",
       "   'name': '肯德基(新世纪餐厅)',\n",
       "   'location': '113.587893,23.547654',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': 'F49F006045_146047',\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': 'B00140UGAP',\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': '5.0', 'meal_ordering': '0'},\n",
       "   'recommend': '0',\n",
       "   'type': '餐饮服务;冷饮店;冷饮店',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/9738c430d9216ccc8b4e568cabe5cb29'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/242a9372c06f90eea383feef817f787f'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/63e0042d32073cfdcb1793be47187953'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3513245720',\n",
       "   'typecode': '050700',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '从化区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '020-87939871',\n",
       "   'id': 'B0FFI8ZPGU',\n",
       "   'tag': '芒果榴莲大花筒,蓝莓棉花糖大花筒,抹茶冰淇淋花筒,伴柠伴橘,/青金桔鲜果茶,奥利奥K飓风（草莓）,奥利奥K飓风（原味）',\n",
       "   'event': [],\n",
       "   'entr_location': [],\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2020-11-13 23:01:54',\n",
       "   'website': [],\n",
       "   'address': '新城东路66号林苑大厦首二层',\n",
       "   'adcode': '440117',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'indoor_data': {'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'business_area': '街口',\n",
       "   'childtype': '202',\n",
       "   'exit_location': [],\n",
       "   'name': '肯德基甜品站(新世纪店)',\n",
       "   'location': '113.587824,23.547704',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': [],\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': 'B0FFHWFF32',\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '29.00', 'rating': '4.5', 'meal_ordering': '0'},\n",
       "   'recommend': '0',\n",
       "   'type': '餐饮服务;快餐厅;肯德基',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/13a1e79236cf21712227f16947c91930'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/605588adc69ea06ddaa9c7cf86336762'},\n",
       "    {'title': '环境',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/a0ecd8a61bc159704d623a8ef2215835'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413632511',\n",
       "   'typecode': '050301',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '黄埔区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '020-32030419;4009208801',\n",
       "   'id': 'B0FFIKU87I',\n",
       "   'tag': '超级外送全家桶T,新奥尔良烤鸡腿堡,纯纯的炸鸡桶,六味小吃桶,藜麦蛋挞拿铁沙啦餐,香辣鸡翅炸鸡TN,劲脆鸡腿堡土豆泥餐,劲爆鸡米花,原味吮指鸡,老北京鸡肉卷,新奥尔良烤翅,中薯,百事可乐TN,香辣鸡腿堡S豆泥餐T,喵咪拿铁,草莓圣代,五味小食拼盘,海盐雪糕,重磅肉霸堡餐,比利时风味华夫巧克力味,桃之恋乌龙茶,荷包满满腊味饭,奥堡辣堡双人餐ST,有翅必win超级桶,醇香土豆泥',\n",
       "   'event': [],\n",
       "   'entr_location': '113.445747,23.186612',\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2020-11-14 10:43:32',\n",
       "   'website': [],\n",
       "   'address': '开创大道3327号一层自编101、102号铺',\n",
       "   'adcode': '440112',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'indoor_data': {'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'business_area': [],\n",
       "   'childtype': '202',\n",
       "   'exit_location': [],\n",
       "   'name': '肯德基(开创大道店)',\n",
       "   'location': '113.445414,23.186331',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': [],\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': [],\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '29.00', 'rating': '4.3', 'meal_ordering': '0'},\n",
       "   'recommend': '0',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/2516dbbdd73a381557df1c8facf89881'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/7a61b80d3b677321f6ce634ddcd8307d'},\n",
       "    {'title': '原味花筒',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/7f86f295a11ef926a48721097d84d35f'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413630922',\n",
       "   'typecode': '050300',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '黄埔区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '020-31608341;4009200715',\n",
       "   'id': 'B0FFKRG55X',\n",
       "   'tag': '精选辣堡单人餐,原味圣代,新奥尔良烤翅,重磅肉霸堡双人餐,超级外送全家桶ST,香辣鸡翅炸鸡TN,香辣鸡腿堡S豆泥餐,波纹霸王薯条,升级炸鸡啤酒小吃桶,六味小吃桶,香辣黄金鸡柳,香辣鸡翅,海盐味雪糕,精选炸鸡啤酒超级桶,港式烧味脆皮大鸡腿饭,超级下午茶分享餐,芝士厚菇素尊堡,冬菇滑鸡粥单人餐,比利时风味华夫巧克力味,比利时风味华夫原味,老北京香辣鸭肉卷,劲脆鸡腿堡ST,安心大油条,厚切牛排明星餐,整块厚切牛排堡',\n",
       "   'event': [],\n",
       "   'entr_location': [],\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2020-11-14 10:37:47',\n",
       "   'website': [],\n",
       "   'address': '开创大道1934号萝岗奥园广场首层L105号商铺',\n",
       "   'adcode': '440112',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'indoor_data': {'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'business_area': [],\n",
       "   'childtype': [],\n",
       "   'exit_location': [],\n",
       "   'name': '肯德基(奥园广场店)',\n",
       "   'location': '113.498680,23.174123',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': [],\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': 'B001423X5X',\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '28.00', 'rating': '4.5', 'meal_ordering': '0'},\n",
       "   'recommend': '0',\n",
       "   'type': '餐饮服务;快餐厅;肯德基',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/f18f32b6980a0739405993b0057e7da8'},\n",
       "    {'title': '菜品',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/8ed35a41bebfc69449f1fca61e20e618'},\n",
       "    {'title': '菜品',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/72777ffd9fbc4a6455681408afa0f6ed'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413630700',\n",
       "   'typecode': '050301',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '黄埔区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '4009200715;020-82512055',\n",
       "   'id': 'B0FFJN6YI9',\n",
       "   'tag': '金沙咸蛋黄香辣鸡翅,新奥尔良烤翅,老北京鸡肉卷,原味吮指鸡,嫩牛五方,五味小食拼盘,六味小吃桶,川辣泡椒鸡块饭,老北京香辣鸭肉卷,嫩牛五方人气明星餐,波纹霸王薯条,热辣香骨鸡T,小龙虾卷堡双人餐T,十三鲜小龙虾烤鸡堡T,太妃芝士风味拿铁大T,劲脆鸡腿堡ST,超级翅桶多人餐T,培根法风烧饼浆餐T,藤椒肯大大鸡排T,香脆薯饼T,香辣鸡腿堡STN,皮蛋瘦肉粥单人餐T,超级外送全家桶ST,原味圣代T,多啦A梦雪糕杯',\n",
       "   'event': [],\n",
       "   'entr_location': '113.467221,23.169875',\n",
       "   'indoor_map': '1',\n",
       "   'email': [],\n",
       "   'timestamp': '2020-11-14 07:14:06',\n",
       "   'website': [],\n",
       "   'address': '科丰路89号万达广场1037、1038、W-1001号铺',\n",
       "   'adcode': '440112',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'indoor_data': {'truefloor': '2F', 'cpid': 'B001423X5X', 'floor': '2'},\n",
       "   'business_area': [],\n",
       "   'childtype': '201',\n",
       "   'exit_location': [],\n",
       "   'name': 'KFC(万达广场)',\n",
       "   'location': '113.466358,23.167564',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': [],\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': 'B0FFH12BQ4',\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '26.00', 'rating': '4.6', 'meal_ordering': '0'},\n",
       "   'recommend': '0',\n",
       "   'type': '餐饮服务;快餐厅;肯德基',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/13a1e79236cf21712227f16947c91930'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/807294cbf8e4e92067d5fdab4ab2e131'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/69b0f38eb11bb38a90e3265d83ee5865'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413630600',\n",
       "   'typecode': '050301',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '黄埔区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '020-82118970;4009208801',\n",
       "   'id': 'B0FFHNTM7E',\n",
       "   'tag': '超值全家桶,上校鸡块,泰式香辣烤翅,蛋挞,原味吮指鸡,薯条,超级外带全家桶,香辣鸡腿堡,牛肉饭,霜糖油条,安心油条,五味小食拼盘,五味小吃桶,咖喱猪扒饭,芝士厚菇素尊堡,半柠半桔鲜果茶,黄金鸡块,热拿铁,新奥尔良烤翅,芝士猪柳蛋帕尼尼,瘦肉粥热豆浆油餐,冬菇滑鸡粥,奥尔良烤腿饭,劲爆鸡米花,金沙咸蛋黄香辣鸡翅',\n",
       "   'event': [],\n",
       "   'entr_location': '113.452576,23.167456',\n",
       "   'indoor_map': '1',\n",
       "   'email': [],\n",
       "   'timestamp': '2020-11-14 03:28:52',\n",
       "   'website': [],\n",
       "   'address': '科学大道193号高德汇购物中心一层及二层',\n",
       "   'adcode': '440112',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'indoor_data': {'truefloor': 'F1', 'cpid': 'B00141KFGE', 'floor': '1'},\n",
       "   'business_area': [],\n",
       "   'childtype': '201',\n",
       "   'exit_location': [],\n",
       "   'name': '肯德基(科学大道餐厅)',\n",
       "   'location': '113.452708,23.167518',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': 'F49F010044_2390',\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': 'B00141IH9C',\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '30.00', 'rating': '4.5', 'meal_ordering': '0'},\n",
       "   'recommend': '0',\n",
       "   'type': '餐饮服务;快餐厅;肯德基',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/13a1e79236cf21712227f16947c91930'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/39debce90ac9a194c06a91cae564beb4'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/23107a49f964cc42f41a9c790044e382'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413623900',\n",
       "   'typecode': '050301',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '天河区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '020-38059100;4009208801;020-38059112',\n",
       "   'id': 'B00141IEXW',\n",
       "   'tag': '新奥尔良烤翅,香辣鸡翅炸鸡,新嫩牛五方,薯条,超级外送全家桶,新奥尔良烤鸡腿堡TN,原味吮指鸡,藜麦蛋挞拿铁沙啦餐,超级翅桶多人餐T,泰式香辣烤翅,老北京鸡肉卷,葡式蛋挞经典装TN,黄金鸡块,五味小食拼盘,劲脆鸡腿堡ST,金沙咸蛋黄香辣鸡翅,卷堡餐,安心大油条,藤椒肯大大鸡排,冬菇滑鸡粥,芙蓉荟蔬汤,芝士猪柳蛋帕尼尼,菌菇四宝汤,油卷热豆浆春卷餐,热牛奶',\n",
       "   'event': [],\n",
       "   'entr_location': '113.365989,23.193058',\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2020-11-14 08:06:35',\n",
       "   'website': [],\n",
       "   'address': '迎龙路6号龙洞购物中心1-2层',\n",
       "   'adcode': '440106',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'indoor_data': {'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'business_area': '龙洞',\n",
       "   'childtype': '202',\n",
       "   'exit_location': [],\n",
       "   'name': '肯德基(龙洞店)',\n",
       "   'location': '113.366391,23.193377',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': 'F49F010043_73150',\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': [],\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '31.00', 'rating': '4.2', 'meal_ordering': '0'},\n",
       "   'recommend': '0',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/c8d0726007e6327df590d4ec541acfd2'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/3f36232c39db00cca99f84fc947d5b89'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/6013cabb93e9e6e168e60124ff8fa7e5'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413630201',\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '天河区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '020-88527137;020-88529497',\n",
       "   'id': 'B0FFK655UR',\n",
       "   'tag': '超级翅桶多人餐,香辣鸡腿堡ST,吮指原味鸡T,老北京鸡肉卷T,葡式蛋挞经典装T,劲脆鸡腿堡ST,荷包满满腊味饭,鸡肉火腿帕尼尼ST,超级外送全家桶ST,塔可青年,拿铁TN,川辣饭鸡肉卷双人餐,抹茶拿铁,甜筒,重磅肉霸堡双人餐,培根鸡腿重磅肉霸堡,桃桃气泡冰咖啡,原味圣代,塔可青年装,超级塔可,现烤大可颂,皮蛋瘦肉粥,喵咪咖啡,老北京香辣鸭肉卷,嫩牛五方',\n",
       "   'event': [],\n",
       "   'entr_location': [],\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2020-11-08 00:28:47',\n",
       "   'website': [],\n",
       "   'address': '华观路1932号116-117铺',\n",
       "   'adcode': '440106',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'indoor_data': {'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'business_area': [],\n",
       "   'childtype': [],\n",
       "   'exit_location': [],\n",
       "   'name': '肯德基(天河万科广场店)',\n",
       "   'location': '113.404433,23.167116',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': [],\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': 'B0FFIB810F',\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '34.00', 'rating': '4.2', 'meal_ordering': '0'},\n",
       "   'recommend': '0',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/6bdd0b54034c42c442c2c8a32ffec31c'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/878b40ba662239064dab77c7cf7f30bd'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/805ac1ac873e84a2b3ddad2045e8c70e'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413548901',\n",
       "   'typecode': '050300',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '增城区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '020-38240984',\n",
       "   'id': 'B0FFKSXVVR',\n",
       "   'tag': '六味小吃桶,葡式蛋挞经典装,炸鸡分享桶,小清新提神双人餐,超级翅桶多人餐,川辣饭鸡肉卷双人餐,香辣鸡腿堡STN,港式烧味脆皮大鸡腿饭,嫩牛五方,鸡肉粥浆太阳蛋餐,新奥良腿堡S豆泥餐,牛肉蛋花粥,波纹霸王薯条,重磅肉霸堡双人餐,培根鸡腿重磅肉霸堡,重磅双层鸡排堡,塔可双人经典餐,鸡同鸭讲双人餐,恋柠恋桔乌龙茶,嫩牛五方人气明星餐,单人工作午餐,老北京鸡肉卷,安心大油条,鸡肉火腿帕尼尼ST,藤椒肯大大鸡排',\n",
       "   'event': [],\n",
       "   'entr_location': '113.618587,23.152151',\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2020-11-13 19:29:04',\n",
       "   'website': [],\n",
       "   'address': '新塘镇新塘万达广场1001铺肯德基',\n",
       "   'adcode': '440118',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'indoor_data': {'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'business_area': [],\n",
       "   'childtype': '202',\n",
       "   'exit_location': [],\n",
       "   'name': '肯德基(新塘万达店)',\n",
       "   'location': '113.618294,23.151961',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': [],\n",
       "   'groupbuy_num': '0'}],\n",
       " 'status': '1',\n",
       " 'info': 'OK'}"
      ]
     },
     "execution_count": 62,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "def polygon(key,polygon=\"113.679287,23.632575|113.361200,23.124680\",keywords=\"肯德基\",types=None,offset=\"15\",sig=None,extensions=\"all\",page=\"1\") ->dict:\n",
    "    \"\"\"多边形搜索\"\"\"\n",
    "    polygon_url = \"https://restapi.amap.com/v3/place/polygon?parameters\"\n",
    "    params = {\n",
    "        \"key\":key_jn,\n",
    "        \"polygon\":polygon,\n",
    "        \"keywords\":keywords,\n",
    "        \"types\":types,\n",
    "        \"offset\":offset,\n",
    "        \"sig\":sig,\n",
    "        \"extensions\":extensions,\n",
    "        \"page\":page,\n",
    "        \"output\":\"json\"\n",
    "    }\n",
    "    response = requests.get(polygon_url,params)\n",
    "    data = response.json()\n",
    "    return data\n",
    "中大南方_天河城肯德基 = polygon(\"113.679287,23.632575|113.361200,23.124680\")\n",
    "中大南方_天河城肯德基"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## IP定位\n",
    "###  该功能的产品应用方案或场景：\n",
    "* 希望能够将IP信息转换为地理位置信息。\n",
    "* 例如：我可能需要知道我的ip地址是来自哪个城市的…"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 63,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'province': '局域网',\n",
       " 'city': [],\n",
       " 'adcode': [],\n",
       " 'rectangle': []}"
      ]
     },
     "execution_count": 63,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "def ip_around(key,ip=\"192.168.43.139\",sig=None)->dict:\n",
    "    \"\"\"IP定义\"\"\"\n",
    "    ip_url = \"https://restapi.amap.com/v3/ip?parameters\"\n",
    "    params = {\n",
    "        \"key\":key_jn,\n",
    "        \"ip\":ip,\n",
    "        \"sig\":sig,\n",
    "        \"output\":\"json\"\n",
    "    }\n",
    "    response = requests.get(ip_url,params=params)\n",
    "    data = response.json()\n",
    "    return data\n",
    "我的ip = ip_around('192.168.43.139')\n",
    "我的ip"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 静态地图  \n",
    "[静态地图文档](https://lbs.amap.com/api/webservice/guide/api/staticmaps)\n",
    "### 该功能的产品应用方案或场景：\n",
    "* 静态地图服务通过返回一张地图图片响应HTTP请求，使用户能够将高德地图以图片形式嵌入自己的网页中。\n",
    "* 可以指定请求的地图位置、图片大小、以及在地图上添加覆盖物，如标签、标注、折线、多边形。"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {},
   "outputs": [],
   "source": [
    "from PIL import Image\n",
    "from io import BytesIO\n",
    "def staticmap(location,zoom,size=None,scale=1,markers=None,labels=None,paths=None,traffic=0,page=None,sig=None)->dict:\n",
    "    \"\"\"获取动态地图\"\"\"\n",
    "    url = 'https://restapi.amap.com/v3/staticmap?parameters'\n",
    "    params={\n",
    "        'key':key_jn,\n",
    "        'location':location,\n",
    "        'zoom':zoom,\n",
    "        'size':size,\n",
    "        'scale':scale,\n",
    "        'markers':markers,\n",
    "        'labels':labels,\n",
    "        'paths':paths,\n",
    "        'traffic':traffic,\n",
    "        'sig':sig,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = Image.open(BytesIO(response.content))\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAMAAAC3Ycb+AAADAFBMVEXXwIrb5uoAZr/t8/bs6uVdX2Dw8Pvx8/Lk49/29vbx7uzl4Nbz9PFgYGDt9v7h5/zv2b749fzy9PTb6O7e4NtfYGPi5uLl5+Pr6eP48eHn9Pn09PPt9vGWlJLk5eLy48725tXu8fr09fT19PPw8u5kZGfz9/jl8/jz4+H19PHZ5uylp6j+/Pv16+lqWEn47ezg3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ZEGTRISnDfc33Av3/414RIxniuYEAAAAASUVORK5CYII=\n",
      "text/plain": [
       "<PIL.PngImagePlugin.PngImageFile image mode=P size=400x400 at 0x1CBF9463A30>"
      ]
     },
     "execution_count": 18,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "staticmap(location=中大南方_location,zoom=16)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 坐标转换  \n",
    "[坐标转换文档](https://lbs.amap.com/api/webservice/guide/api/convert)\n",
    "###  该功能的产品应用方案或场景：\n",
    "* 为了使用高德服务，我需要将非高德坐标转换为高德坐标。"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 64,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'ok',\n",
       " 'infocode': '10000',\n",
       " 'locations': '13.679287,23.632575'}"
      ]
     },
     "execution_count": 64,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "def convert(key,locations=\"13.679287,23.632575\",coordsys=\"autonavi\",sig=None)->dict:\n",
    "    convert_url = \"https://restapi.amap.com/v3/assistant/coordinate/convert?parameters\"\n",
    "    params = {\n",
    "        \"key\":key_jn,\n",
    "        \"locations\":locations,\n",
    "        \"coordsys\":coordsys,\n",
    "        \"sig\":sig,\n",
    "        \"output\":\"json\"\n",
    "    }\n",
    "    response = requests.get(convert_url,params=params)\n",
    "    data = response.json()\n",
    "    return data\n",
    "转换坐标 = convert(\"13.679287,23.632575\")\n",
    "转换坐标"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 天气查询  \n",
    "[天气查询文档](https://lbs.amap.com/api/webservice/guide/api/weatherinfo)\n",
    "### 该功能的产品应用方案或场景：\n",
    "* 我需要使用相关天气查询的时候就可以调用，不仅可以看看今天的天气，还有天气预报的！"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'count': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'forecasts': [{'city': '东莞市',\n",
       "   'adcode': '441900',\n",
       "   'province': '广东',\n",
       "   'reporttime': '2020-11-14 09:52:41',\n",
       "   'casts': [{'date': '2020-11-14',\n",
       "     'week': '6',\n",
       "     'dayweather': '小雨',\n",
       "     'nightweather': '阴',\n",
       "     'daytemp': '25',\n",
       "     'nighttemp': '19',\n",
       "     'daywind': '北',\n",
       "     'nightwind': '北',\n",
       "     'daypower': '≤3',\n",
       "     'nightpower': '≤3'},\n",
       "    {'date': '2020-11-15',\n",
       "     'week': '7',\n",
       "     'dayweather': '阴',\n",
       "     'nightweather': '多云',\n",
       "     'daytemp': '26',\n",
       "     'nighttemp': '19',\n",
       "     'daywind': '北',\n",
       "     'nightwind': '北',\n",
       "     'daypower': '≤3',\n",
       "     'nightpower': '≤3'},\n",
       "    {'date': '2020-11-16',\n",
       "     'week': '1',\n",
       "     'dayweather': '多云',\n",
       "     'nightweather': '多云',\n",
       "     'daytemp': '28',\n",
       "     'nighttemp': '19',\n",
       "     'daywind': '北',\n",
       "     'nightwind': '北',\n",
       "     'daypower': '≤3',\n",
       "     'nightpower': '≤3'},\n",
       "    {'date': '2020-11-17',\n",
       "     'week': '2',\n",
       "     'dayweather': '多云',\n",
       "     'nightweather': '阴',\n",
       "     'daytemp': '28',\n",
       "     'nighttemp': '21',\n",
       "     'daywind': '北',\n",
       "     'nightwind': '北',\n",
       "     'daypower': '≤3',\n",
       "     'nightpower': '≤3'}]}]}"
      ]
     },
     "execution_count": 20,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "def weather(key,city=\"441900\",extensions=\"all\") ->dict:\n",
    "    weather_url = \"https://restapi.amap.com/v3/weather/weatherInfo?parameters\"\n",
    "    params = {\n",
    "        \"key\":key_jn,\n",
    "        \"city\":city,\n",
    "        \"extensions\":extensions,\n",
    "    }\n",
    "    response = requests.get(weather_url,params=params)\n",
    "    data = response.json()\n",
    "    return data\n",
    "东莞天气预报 = weather(\"441900\")\n",
    "东莞天气预报"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 输入提示\n",
    "[输入提示文档](https://lbs.amap.com/api/webservice/guide/api/inputtips)\n",
    "### 该功能的产品应用方案或场景：\n",
    "* 在高德客户端的使用场景，输入“麦当劳”之后出现“北京路麦当劳”“天河城麦当劳”等等提示相关。"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 67,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'count': '10',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'tips': [{'id': [],\n",
       "   'name': '麦当劳',\n",
       "   'district': [],\n",
       "   'adcode': [],\n",
       "   'location': [],\n",
       "   'address': [],\n",
       "   'typecode': [],\n",
       "   'city': []},\n",
       "  {'id': 'B00140T145',\n",
       "   'name': '麦当劳(小北路店)',\n",
       "   'district': '广东省广州市越秀区',\n",
       "   'adcode': '440104',\n",
       "   'location': '113.271610,23.135317',\n",
       "   'address': '小北路193-215号广州鹏源大厦1层',\n",
       "   'typecode': '050302',\n",
       "   'city': []},\n",
       "  {'id': 'B00140U67C',\n",
       "   'name': '麦当劳(动漫星城店)',\n",
       "   'district': '广东省广州市越秀区',\n",
       "   'adcode': '440104',\n",
       "   'location': '113.264945,23.125748',\n",
       "   'address': '吉祥路1号广州动漫星城B1层',\n",
       "   'typecode': '050302',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFFPA209',\n",
       "   'name': '麦当劳甜品站(百汇广场店)',\n",
       "   'district': '广东省广州市越秀区',\n",
       "   'adcode': '440104',\n",
       "   'location': '113.263845,23.125074',\n",
       "   'address': '中山五路193百汇广场1层',\n",
       "   'typecode': '050302',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFG5QCBK',\n",
       "   'name': '麦当劳甜品站(中山四路店)',\n",
       "   'district': '广东省广州市越秀区',\n",
       "   'adcode': '440104',\n",
       "   'location': '113.271377,23.125959',\n",
       "   'address': '中山四路246号信德商务大厦1层',\n",
       "   'typecode': '050302',\n",
       "   'city': []},\n",
       "  {'id': 'B00140NVX2',\n",
       "   'name': '麦当劳(信德商务大厦分店)',\n",
       "   'district': '广东省广州市越秀区',\n",
       "   'adcode': '440104',\n",
       "   'location': '113.271571,23.125975',\n",
       "   'address': '中山四路244-259号信德商务大厦1-2层(近北京路)',\n",
       "   'typecode': '050302',\n",
       "   'city': []},\n",
       "  {'id': 'B00140UEQE',\n",
       "   'name': '麦当劳(金融大厦店)',\n",
       "   'district': '广东省广州市越秀区',\n",
       "   'adcode': '440104',\n",
       "   'location': '113.257862,23.132669',\n",
       "   'address': '东风西路197-199号广州国际金融大厦B1层',\n",
       "   'typecode': '050302',\n",
       "   'city': []},\n",
       "  {'id': 'B00140T53J',\n",
       "   'name': '麦当劳(北京路店)',\n",
       "   'district': '广东省广州市越秀区',\n",
       "   'adcode': '440104',\n",
       "   'location': '113.267860,23.123462',\n",
       "   'address': '西湖路至大马站路段的广百广场新翼首层及夹层',\n",
       "   'typecode': '050302',\n",
       "   'city': []},\n",
       "  {'id': 'B00140T1BA',\n",
       "   'name': '麦当劳(东方时代广场分店)',\n",
       "   'district': '广东省广州市越秀区',\n",
       "   'adcode': '440104',\n",
       "   'location': '113.259380,23.140249',\n",
       "   'address': '流花路东方宾馆东翼商场首、二层',\n",
       "   'typecode': '050302',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFH86PDA',\n",
       "   'name': '麦当劳甜品站(流花路)',\n",
       "   'district': '广东省广州市越秀区',\n",
       "   'adcode': '440104',\n",
       "   'location': '113.259237,23.140343',\n",
       "   'address': '环市西路194号流花宾馆首层',\n",
       "   'typecode': '050700',\n",
       "   'city': []}]}"
      ]
     },
     "execution_count": 67,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "def tips(key,keywords=\"麦当劳\",city=\"440000\",location=\"113.266530,23.132191\",citylimit=\"true\",datatype=\"all\",sig=None) ->dict:\n",
    "    tips_url = \"https://restapi.amap.com/v3/assistant/inputtips?parameters\"\n",
    "    params = {\n",
    "        \"key\":key_jn,\n",
    "        \"keywords\":keywords,\n",
    "        \"city\":city,\n",
    "        \"location\":location,\n",
    "        \"citylimit\":citylimit,\n",
    "        \"datatype\":datatype,\n",
    "        \"sig\":sig,\n",
    "        \"output\":\"json\"\n",
    "    }\n",
    "    response = requests.get(tips_url,params=params)\n",
    "    data = response.json()\n",
    "    return data\n",
    "麦当劳 = tips(\"440000\")\n",
    "麦当劳"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 交通态势\n",
    "[交通态势](https://lbs.amap.com/api/webservice/guide/api/trafficstatus)\n",
    "### 该功能的产品应用方案或场景\n",
    "* 我希望能够确定矩形、圆形或某条道路的交通态势情况，看一下会不会塞车或者车祸发生，路况信息2分钟更新一次。（可是平台不给我用！）"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'info': 'INSUFFICIENT_PRIVILEGES',\n",
       " 'infocode': '10012',\n",
       " 'status': '0',\n",
       " 'sec_code_debug': 'd41d8cd98f00b204e9800998ecf8427e',\n",
       " 'key': '2042af1de5ec0cfa53a793235a023dcb',\n",
       " 'sec_code': 'd41d8cd98f00b204e9800998ecf8427e'}"
      ]
     },
     "execution_count": 24,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "def rect(key,level=\"主要道路\",extensions=\"all\",rectangle=\"113.679287,23.632575;113.588823,23.547738\") ->dict:\n",
    "    rect_url = \"https://restapi.amap.com/v3/traffic/status/rectangle?parameters\"\n",
    "    params = {\n",
    "        \"key\":key_jn,\n",
    "        \"level\":level,\n",
    "        \"extensions\":extensions,\n",
    "        \"rectangle\":rectangle,\n",
    "        \"output\":\"json\"\n",
    "    }\n",
    "    response = requests.get(url=rect_url,params=params)\n",
    "    data = response.json()\n",
    "    return data\n",
    "中大南方_从化客运站交通态势 = rect(\"113.679287,23.632575;113.588823,23.547738\")\n",
    "中大南方_从化客运站交通态势"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 批量请求接口\n",
    "[批量请求接口](https://lbs.amap.com/api/webservice/guide/api/batchrequest)\n",
    "### 该功能的产品应用方案或场景\n",
    "* 我希望批量得到接口返回数据。"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 84,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[{'status': 200,\n",
       "  'body': {'suggestion': {'keywords': {}, 'cities': {}},\n",
       "   'info': 'OK',\n",
       "   'infocode': '10000',\n",
       "   'count': '868',\n",
       "   'pois': [{'typecode': '080104',\n",
       "     'adname': '海淀区',\n",
       "     'biz_type': {},\n",
       "     'id': 'B000A80AY3',\n",
       "     'pname': '北京市',\n",
       "     'importance': {},\n",
       "     'parent': 'B000A83H2R',\n",
       "     'location': '116.315311,39.960243',\n",
       "     'distance': '31',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '中关村南大街5号北京理工大学体育馆西侧',\n",
       "     'poiweight': {},\n",
       "     'childtype': '309',\n",
       "     'photos': [{'provider': {},\n",
       "       'title': {},\n",
       "       'url': 'http://store.is.autonavi.com/showpic/e1446c70a0c9ff1c17bdb342a5f4bd03'},\n",
       "      {'provider': {},\n",
       "       'title': '外景图',\n",
       "       'url': 'http://store.is.autonavi.com/showpic/4c4b636ab34792ceefba4d20ed9695f8'},\n",
       "      {'provider': {},\n",
       "       'title': '外景图',\n",
       "       'url': 'http://store.is.autonavi.com/showpic/159963f5131c253c4b930341d5329201'}],\n",
       "     'type': '体育休闲服务;运动场馆;篮球场馆',\n",
       "     'shopinfo': '0',\n",
       "     'name': '北京理工大学中关村校区篮球场(体育北路)(暂停营业)',\n",
       "     'cityname': '北京市'},\n",
       "    {'typecode': '080100',\n",
       "     'adname': '海淀区',\n",
       "     'biz_type': {},\n",
       "     'id': 'B000A9PI20',\n",
       "     'pname': '北京市',\n",
       "     'importance': {},\n",
       "     'parent': 'B000A83H2R',\n",
       "     'location': '116.315772,39.959267',\n",
       "     'distance': '92',\n",
       "     'tel': '010-68912536',\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '中关村南大街5号北京理工大学',\n",
       "     'poiweight': {},\n",
       "     'childtype': '309',\n",
       "     'photos': [{'provider': {},\n",
       "       'title': {},\n",
       "       'url': 'http://store.is.autonavi.com/showpic/538fe3d9a310b133764945bc'}],\n",
       "     'type': '体育休闲服务;运动场馆;运动场所',\n",
       "     'shopinfo': '0',\n",
       "     'name': '北京理工大学中关村校区东操场',\n",
       "     'cityname': '北京市'},\n",
       "    {'typecode': '080100',\n",
       "     'adname': '海淀区',\n",
       "     'biz_type': {},\n",
       "     'id': 'B000A7GWOC',\n",
       "     'pname': '北京市',\n",
       "     'importance': {},\n",
       "     'parent': 'B000A83H2R',\n",
       "     'location': '116.314534,39.959229',\n",
       "     'distance': '100',\n",
       "     'tel': '010-68912532;010-68915220',\n",
       "     'biz_ext': {'rating': '3.5', 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '中关村南大街5号北京理工大学',\n",
       "     'poiweight': {},\n",
       "     'childtype': '309',\n",
       "     'photos': [{'provider': {},\n",
       "       'title': {},\n",
       "       'url': 'http://store.is.autonavi.com/showpic/2967cf1d2b56b6b412572a16c800ca3a'},\n",
       "      {'provider': {},\n",
       "       'title': {},\n",
       "       'url': 'http://store.is.autonavi.com/showpic/9f506c9ae860890293dd0b9e80280417'},\n",
       "      {'provider': {},\n",
       "       'title': {},\n",
       "       'url': 'http://store.is.autonavi.com/showpic/9240e678182b0ab6b72d56e1ac311d25'}],\n",
       "     'type': '体育休闲服务;运动场馆;运动场所',\n",
       "     'shopinfo': '0',\n",
       "     'name': '北京理工大学中关村校区体育馆',\n",
       "     'cityname': '北京市'},\n",
       "    {'typecode': '080000',\n",
       "     'adname': '海淀区',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFFSW056',\n",
       "     'pname': '北京市',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.313960,39.959720',\n",
       "     'distance': '109',\n",
       "     'tel': '010-57796607;18600065292',\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '中关村南大街5号北京理工大学',\n",
       "     'poiweight': {},\n",
       "     'childtype': {},\n",
       "     'photos': [{'provider': {},\n",
       "       'title': {},\n",
       "       'url': 'http://store.is.autonavi.com/showpic/9bafd7956ddd3575ba598f23fb16b62c'},\n",
       "      {'provider': {},\n",
       "       'title': {},\n",
       "       'url': 'http://store.is.autonavi.com/showpic/f70e91b57f874e89a29576bb9b6dfa23'},\n",
       "      {'provider': {},\n",
       "       'title': {},\n",
       "       'url': 'http://store.is.autonavi.com/showpic/6e83fe5141af7c07915355be286cfc5e'}],\n",
       "     'type': '体育休闲服务;体育休闲服务场所;体育休闲服务场所',\n",
       "     'shopinfo': '0',\n",
       "     'name': '享动青少年足球俱乐部(北理工店)',\n",
       "     'cityname': '北京市'},\n",
       "    {'typecode': '080105',\n",
       "     'adname': '海淀区',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFG3YKNR',\n",
       "     'pname': '北京市',\n",
       "     'importance': {},\n",
       "     'parent': 'B000A83H2R',\n",
       "     'location': '116.315732,39.958993',\n",
       "     'distance': '118',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '中关村南大街5号北京理工大学',\n",
       "     'poiweight': {},\n",
       "     'childtype': '309',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;运动场馆;足球场',\n",
       "     'shopinfo': '0',\n",
       "     'name': '北京理工大学中关村校区足球场',\n",
       "     'cityname': '北京市'},\n",
       "    {'typecode': '080105',\n",
       "     'adname': '海淀区',\n",
       "     'biz_type': {},\n",
       "     'id': 'B000A9PI4M',\n",
       "     'pname': '北京市',\n",
       "     'importance': {},\n",
       "     'parent': 'B000A83H2R',\n",
       "     'location': '116.313456,39.959508',\n",
       "     'distance': '157',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '中关村南大街5号北京理工大学',\n",
       "     'poiweight': {},\n",
       "     'childtype': '309',\n",
       "     'photos': [{'provider': {},\n",
       "       'title': {},\n",
       "       'url': 'http://store.is.autonavi.com/showpic/d895224d9ad22dc8422828ad9a16a26d'},\n",
       "      {'provider': {},\n",
       "       'title': {},\n",
       "       'url': 'http://store.is.autonavi.com/showpic/538fe3d9a310b133764945c4'}],\n",
       "     'type': '体育休闲服务;运动场馆;足球场',\n",
       "     'shopinfo': '0',\n",
       "     'name': '北京理工大学足球场',\n",
       "     'cityname': '北京市'},\n",
       "    {'typecode': '080100',\n",
       "     'adname': '海淀区',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFF5KBNU',\n",
       "     'pname': '北京市',\n",
       "     'importance': {},\n",
       "     'parent': 'B000A83H2R',\n",
       "     'location': '116.313586,39.958656',\n",
       "     'distance': '200',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '西三环北路理工大学校内',\n",
       "     'poiweight': {},\n",
       "     'childtype': '309',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;运动场馆;运动场所',\n",
       "     'shopinfo': '0',\n",
       "     'name': '北京理工大学中关村校区排球场',\n",
       "     'cityname': '北京市'},\n",
       "    {'typecode': '080100',\n",
       "     'adname': '海淀区',\n",
       "     'biz_type': {},\n",
       "     'id': 'B000A9PI2T',\n",
       "     'pname': '北京市',\n",
       "     'importance': {},\n",
       "     'parent': 'B000A83H2R',\n",
       "     'location': '116.313218,39.958946',\n",
       "     'distance': '203',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '中关村南大街5号北京理工大学中关村校区',\n",
       "     'poiweight': {},\n",
       "     'childtype': '309',\n",
       "     'photos': [{'provider': {},\n",
       "       'title': {},\n",
       "       'url': 'http://store.is.autonavi.com/showpic/538fe3d9a310b133764945c8'}],\n",
       "     'type': '体育休闲服务;运动场馆;运动场所',\n",
       "     'shopinfo': '0',\n",
       "     'name': '北京理工大学中关村校区西操场',\n",
       "     'cityname': '北京市'},\n",
       "    {'typecode': '080103',\n",
       "     'adname': '海淀区',\n",
       "     'biz_type': {},\n",
       "     'id': 'B000A9PHTT',\n",
       "     'pname': '北京市',\n",
       "     'importance': {},\n",
       "     'parent': 'B000A83H2R',\n",
       "     'location': '116.312811,39.959139',\n",
       "     'distance': '223',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': '3.5', 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '中关村南大街5号北京理工大学',\n",
       "     'poiweight': {},\n",
       "     'childtype': '309',\n",
       "     'photos': [{'provider': {},\n",
       "       'title': {},\n",
       "       'url': 'http://store.is.autonavi.com/showpic/883fef52d8b1c82c7afcb8b96f8e0109'},\n",
       "      {'provider': {},\n",
       "       'title': {},\n",
       "       'url': 'http://store.is.autonavi.com/showpic/7d918df94fde19472f53ddc1e5567716'},\n",
       "      {'provider': {},\n",
       "       'title': '球场',\n",
       "       'url': 'http://store.is.autonavi.com/showpic/5c0d9b332c2e1087dab313276f9f246c'}],\n",
       "     'type': '体育休闲服务;运动场馆;网球场',\n",
       "     'shopinfo': '0',\n",
       "     'name': '北京理工大学网球场',\n",
       "     'cityname': '北京市'},\n",
       "    {'typecode': '080104',\n",
       "     'adname': '海淀区',\n",
       "     'biz_type': {},\n",
       "     'id': 'B000A96FSW',\n",
       "     'pname': '北京市',\n",
       "     'importance': {},\n",
       "     'parent': 'B000A83H2R',\n",
       "     'location': '116.313195,39.958339',\n",
       "     'distance': '249',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': '3.0', 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '中关村南大街5号北京理工大学中关村校区',\n",
       "     'poiweight': {},\n",
       "     'childtype': '309',\n",
       "     'photos': [{'provider': {},\n",
       "       'title': {},\n",
       "       'url': 'http://store.is.autonavi.com/showpic/538fe3d9a310b133764945c6'},\n",
       "      {'provider': {},\n",
       "       'title': {},\n",
       "       'url': 'http://store.is.autonavi.com/showpic/538fe3d9a310b133764945bf'},\n",
       "      {'provider': {},\n",
       "       'title': {},\n",
       "       'url': 'http://store.is.autonavi.com/showpic/81dc7bfa0d2d923bf6d7b322cbdbda12'}],\n",
       "     'type': '体育休闲服务;运动场馆;篮球场馆',\n",
       "     'shopinfo': '0',\n",
       "     'name': '北京理工大学中关村校区篮球场(校园南路)',\n",
       "     'cityname': '北京市'}],\n",
       "   'status': '1'},\n",
       "  'header': {'gsid': '011018239175160533437186100012089126118',\n",
       "   'Vary': 'Accept-Encoding',\n",
       "   'Content-Type': 'application/json;charset=UTF-8',\n",
       "   'Access-Control-Allow-Methods': '*',\n",
       "   'Access-Control-Allow-Origin': '*',\n",
       "   'sc': '0.090',\n",
       "   'Content-Length': 7012,\n",
       "   'Access-Control-Allow-Headers': 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,key,x-biz,x-info,platinfo,encr,enginever,gzipped,poiid'}},\n",
       " {'status': 200,\n",
       "  'body': {'status': '0', 'info': 'INVALID_USER_KEY', 'infocode': '10001'},\n",
       "  'header': {'gsid': '011018239175160533437186100012089126118',\n",
       "   'Content-Type': 'application/json',\n",
       "   'Access-Control-Allow-Methods': '*',\n",
       "   'Access-Control-Allow-Origin': '*',\n",
       "   'sc': '0.000',\n",
       "   'Content-Length': 59,\n",
       "   'Access-Control-Allow-Headers': 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,key,x-biz,x-info,platinfo,encr,enginever,gzipped,poiid'}}]"
      ]
     },
     "execution_count": 84,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "def batch(url=\"/v3/place/around?offset=10&page=1&key=2042af1de5ec0cfa53a793235a023dcb&location=116.315196,39.959971&output=json&radius=100000&types=080000\"):\n",
    "    parameters = {\n",
    "        \"key\":key_jn,\n",
    "    }\n",
    "    body = {\n",
    "        \"ops\":[\n",
    "            {\n",
    "                \"url\":'{}'.format(url)\n",
    "            },\n",
    "            {\n",
    "                \"url\":\"/v3/place/around?offset=10&page=1&key=2042af1de5ec0cfa53a793235a023dcbf&location=116.315196,39.959971&output=json&radius=100000&types=080000\"\n",
    "            }\n",
    "        ]\n",
    "    }\n",
    "    response = requests.get(\"https://restapi.amap.com/v3/batch?\",params = parameters,json=body)\n",
    "    data = response.json()\n",
    "    return data\n",
    "batch()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 地理围栏\n",
    "[地理围栏](https://lbs.amap.com/api/webservice/guide/api/geofence_service)\n",
    "###  该功能的产品应用方案或场景\n",
    "* 签到打卡类场景，在用户打卡操作前，判断用户是否已经在对应的地理围栏区域内；\n",
    "* 共享单车类场景，当用户骑车离开合法使用区域时，第一时间获知；或当用户关锁支付时，判断用户是否停在了合法区域内；\n",
    "* 线下门店促销场景，当获取到用户定位在促销门店区域的附近时，向用户发送引导进入店铺的促销信息。"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 104,
   "metadata": {},
   "outputs": [],
   "source": [
    "def create(key,name=\"围栏\",center=\"113.679287,23.632575\",radius=\"3000\",enable=\"true\",valid_time =\"2020-12-30\",repeat=\"Mon,Tues,Wed,Thur,Fri,Sat,Sun\",fixed_date =\"2020-12-01;2020-12-03;2020-12-05\",time=\"00:59,23:59\",desc=None,alert_condition=\"enter;leave\"):\n",
    "    key_jn = \"2042af1de5ec0cfa53a793235a023dcb\"\n",
    "    parameters = {\n",
    "        \"key\":key_jn,\n",
    "    }\n",
    "    body = {\n",
    "        \"name\": name,\n",
    "        \"center\": center,\n",
    "        \"radius\": radius,\n",
    "        \"enable\": enable,\n",
    "        \"valid_time\": valid_time,\n",
    "        \"repeat\": repeat,\n",
    "        \"time\": time,\n",
    "        \"desc\": desc,\n",
    "        \"alert_condition\": alert_condition\n",
    "    }\n",
    "    response = requests.post(\"https://restapi.amap.com/v4/geofence/meta\",params = parameters,json = body)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 107,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'data': {'message': '新增围栏已存在', 'status': '106'},\n",
       " 'errcode': 0,\n",
       " 'errdetail': None,\n",
       " 'errmsg': 'OK',\n",
       " 'ext': None}"
      ]
     },
     "execution_count": 107,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "create(key=\"key_jn\",name=\"围栏\",center=\"113.679287,23.632575\")"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 轨迹纠偏\n",
    "[轨迹纠偏](https://lbs.amap.com/api/webservice/guide/api/grasproad)\n",
    "###  该功能的产品应用方案或场景\n",
    "* 用于将行车产生的轨迹坐标点匹配到道路上。"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 109,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'data': {'distance': 33.0,\n",
       "  'points': [{'x': 116.44942000249563, 'y': 40.014843356125866},\n",
       "   {'x': 116.44945705955585, 'y': 40.01453960973057}]},\n",
       " 'errcode': 0,\n",
       " 'errdetail': None,\n",
       " 'errmsg': 'OK',\n",
       " 'ext': None}"
      ]
     },
     "execution_count": 109,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "def Trajectory():\n",
    "    parameters = {\n",
    "        \"key\":key_jn,\n",
    "    }\n",
    "    body = [\n",
    "        {\n",
    "            \"x\": 116.449429,\n",
    "            \"y\": 40.014844,\n",
    "            \"sp\": 4,\n",
    "            \"ag\": 110,\n",
    "            \"tm\": 1478831753\n",
    "        }, \n",
    "        {\n",
    "            \"x\": 116.449639,\n",
    "            \"y\": 40.014776,\n",
    "            \"sp\": 3,\n",
    "            \"ag\": 110,\n",
    "            \"tm\": 23\n",
    "        }, \n",
    "        {\n",
    "            \"x\": 116.449859,\n",
    "            \"y\": 40.014716,\n",
    "            \"sp\": 3,\n",
    "            \"ag\": 111,\n",
    "            \"tm\": 33\n",
    "        },\n",
    "        {\n",
    "            \"x\": 116.450074,\n",
    "            \"y\": 40.014658,\n",
    "            \"sp\": 3,\n",
    "            \"ag\": 110,\n",
    "            \"tm\": 31\n",
    "        }, \n",
    "        {\n",
    "            \"x\": 116.450273,\n",
    "            \"y\": 40.014598,\n",
    "            \"sp\": 3,\n",
    "            \"ag\": 111,\n",
    "            \"tm\": 20\n",
    "        }]\n",
    "    r = requests.get(\"https://restapi.amap.com/v4/grasproad/driving\",params=parameters,json=body)\n",
    "    data = r.json()\n",
    "    return data\n",
    "Trajectory()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.3"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {
    "height": "calc(100% - 180px)",
    "left": "10px",
    "top": "150px",
    "width": "242.2px"
   },
   "toc_section_display": true,
   "toc_window_display": true
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
